Toggle Menu
Prev Up Next

# `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

  Get credentials.

  Parameters

    - token_file (Optional[str]) –

    - client_secrets_file (Optional[str]) –

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

  Return type

    Credentials

# Examples using get_gmail_credentials

- os.environ[“LANGCHAIN_TRACING_V2”] = “true”