langchain_google_community.gmail.utils
.get_gmail_credentials¶
- langchain_google_community.gmail.utils.get_gmail_credentials(token_file: Optional[str] = None, client_secrets_file: Optional[str] = None, service_account_file: Optional[str] = None, scopes: Optional[List[str]] = None, use_domain_wide: bool = False, delegated_user: Optional[str] = None) Credentials [source]¶
获取凭证。
- 参数:
**token_file** (可选[str]) –
**client_secrets_file** (可选[str]) –
**service_account_file** (可选[str]) –
**scopes** (可选[List[str]) –
**use_domain_wide** (bool) –
**delegated_user** (可选[str]) –
- 返回类型
Credentials