langchain_community.tools.gmail.utils.get_gmail_credentials¶

langchain_community.tools.gmail.utils.get_gmail_credentials(token_file: Optional[str] = None, client_secrets_file: Optional[str] = None, scopes: Optional[List[str]] = None) Credentials[source]¶

Get credentials.

Parameters
  • token_file (Optional[str]) –

  • client_secrets_file (Optional[str]) –

  • scopes (Optional[List[str]]) –

Return type

Credentials

Examples using get_gmail_credentials¶