get_gmail_credentials#

langchain_google_community.gmail.utils.get_gmail_credentials(token_file: str | None = None, client_secrets_file: str | None = None, service_account_file: str | None = None, scopes: List[str] | None = None, use_domain_wide: bool = False, delegated_user: str | None = None) Credentials[source]#

Get credentials.

Parameters:
  • token_file (Optional[str])

  • client_secrets_file (Optional[str])

  • service_account_file (Optional[str])

  • scopes (Optional[List[str]])

  • use_domain_wide (bool)

  • delegated_user (Optional[str])

Return type:

Credentials