build_resource_service#

langchain_google_community.gmail.utils.build_resource_service(credentials: Credentials | None = None, service_name: str = 'gmail', service_version: str = 'v1', use_domain_wide: bool = False, delegated_user: str | None = None, service_account_file: str | None = None, scopes: List[str] | None = None) Resource[source]#

Build a Gmail service.

Parameters:
  • credentials (Optional[Credentials]) –

  • service_name (str) –

  • service_version (str) –

  • use_domain_wide (bool) –

  • delegated_user (Optional[str]) –

  • service_account_file (Optional[str]) –

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

Return type:

Resource