订阅

UiPath 活动

UiPath 活动指南

关于 Google Gsuite 活动

The UiPath.GSuite.Activities package helps you automate Google Workspace (formerly known as G Suite) applications, including Google Calendar, Google Drive, Google Sheets, Gmail, and Google Docs.

With the Google GSuite Activities Package, you can create & modify Google Calendar events, manage Google Drive files, read & send GMail messages, create new Google Sheet spreadsheets, and Google Docs documents.

Setup

Before using the Google GSuite Activities Package, you must configure your applications using the Google Cloud Platform.

配置分为两个步骤:

  1. 启用 API - 此步骤会向 Google G Suite 应用程序授予 API 访问权限,进而实现自动化。
  2. 创建凭据 - 此步骤会指定用于与启用的 API 进行交互的身份验证类型。

启用 API

请按照下列步骤启用 API。

📘

Note:

下列步骤均出自 Google API 控制台帮助文档中的“启用和禁用 API”。

  1. 使用个人、公司或学校的 Google G Suite 帐户登录 Google Cloud Platform
  2. 登录 Google Cloud Platform 后,在顶部菜单栏中选择要用于自动化项目的项目。
    • 若没有项目,请按照 Google Cloud 文档中的“创建和管理项目”说明创建一个项目。
  1. 打开顶部导航栏中的菜单。
  2. 将鼠标悬停在“API 与服务”上方(显示选项菜单),然后选择“库”(打开“API 库”)。
  1. 转到“API 库”中的“G Suite”部分。
  2. 单击要为其启用 API(例如 Google Drive API)的应用程序。
    • “Google GSuite 活动包”支持如下 API:Google Drive APIGoogle Calendar APIGMail APIGoogle Sheets APIGoogle Docs API
  1. 在所选应用程序 API 页面中,单击“启用”
  1. 重复步骤 5 和 6,为其余应用程序启用 API。
    • 如果您希望使用所有 Google GSuite 活动,请启用 Google Drive APIGoogle Calendar APIGMail APIGoogle Sheets APIGoogle Docs API

操作完毕!现在,让我们创建凭据,以便您访问启用的 API。

创建凭据

请按照下列步骤为项目创建凭据。

  1. 在项目的“API 与服务”页面(“Google Cloud Platform”>“项目”>“API 与服务”)中,单击左侧导航面板中的“凭据”
  1. “凭据”页面打开后,单击“创建凭据”并选择要用于应用程序的凭据类型。

📘

Note:

请咨询您的 IT 部门,确定应为项目使用哪种凭据类型。如需详细了解不同凭据类型的区别,请参阅 Google Cloud 文档中的“身份验证概览”。

如需了解所有凭据类型,请参阅以下详细信息。

  • API key
    An API key is the simplest authentication mechanism but can be used only with the Google Sheets activity.

    For more information about API Keys, see Using API Keys in the Google Cloud Documentation.

  • OAuth 客户端 ID

    Please note that when creating the Credential, its type should be "Other".

    The OAuth Client ID method works with all GSuite services, however, it's recommended for attended automation because user consent is required before the robot can access your Google account (for more information, see User consent in the Google Help documentation).

    For more information about OAuth client ID, see Using OAuth 2.0 to Access Google APIs in the Google Cloud Documentation. For step-by-step instructions, see Setting up OAuth 2.0 in the Google Help documentation.

  • Service account key
    A service account key is a special type of Google account that belongs to your application instead of to an individual end-user. Your application calls Google APIs on behalf of the service account, so users aren't directly involved.

    For more information about Service account keys, see Understanding service accounts in the Google Cloud Documentation.

  1. 请按照下列适用说明添加所选凭据。

操作完毕!

启用 API 并添加凭据后,即可构建包含 Google GSuite 活动的自动化项目。


Use of the software developed and provided by UiPath in connection with any Google software is subject to the UiPath Open Platform Activity License Agreement. Google software and services used in conjunction with the UiPath software may be accessed and used in accordance with Google Terms and any other applicable agreements, policies, or guidelines as made available by Google.

Updated about a month ago


关于 Google Gsuite 活动


建议的编辑仅限用于 API 参考页面

You can only suggest edits to Markdown body content, but not to the API spec.