langchain_google_community.gmail.utils.build_resource_service

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

构建Gmail服务。

参数
  • credentials (可选[Credentials]) –

  • service_name (str) –

  • service_version (str) –

  • use_domain_wide (bool) –

  • delegated_user (可选[str]) –

  • service_account_file (可选[str]) –

  • scopes (可选[List[str]]) –

返回类型

Resource

使用 build_resource_service 的示例