UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

生产力活动

Google Workspace 编码自动化 API

API 允许您访问“管理包”菜单中提供的服务并与之交互。您可以在设计编码自动化时使用这些 API。请访问编码自动化,了解编码自动化以及如何使用 API 设计编码自动化。

备注:

Using Go to Definition (F12) lets you access the definition of UiPath APIs for a certain service. We recommend relying only on the directly exposed APIs when you implement coded automations. Other APIs that are not directly exposed with a service are subject to change without prior notification.

重载

API 通常具有重载,这意味着它们为同一方法的多个版本提供不同的参数选项。重载允许您根据特定要求自定义 API 的行为。例如,用户界面自动化 API 可能具有接受超时参数的重载,以指定在结束执行之前等待用户界面元素出现的最长时间。

By using the APIs with their respective overloads, you can achieve your desired automation logic and behavior.

Google Workspace 服务的编码自动化 API

The Google Workspace coded automation APIs complement the capabilities of the Google Workspace activity package, letting you have a full coding experience. This approach encourages custom actions, and supports reusability. The coded automation APIs cover the Google Calendar, Drive and Drive Labels, Gmail, and Sheets services.

使用编码自动化 API

要使用 Google 编码自动化 API,您必须先调用在 Integration Service 中建立的连接。然后,调用所需的服务,例如云端硬盘 ( var service = google.Drive(connections.Drive.<connectionID> ),并添加编码自动化 API ( var service = google.Drive.CopyFile )。

  1. 下载活动包。
  2. 创建编码工作流
  3. 调用connections服务以访问您的 Integration Service 连接,然后调用所需的 Google 服务。
  4. 在您先前选择的连接上调用所需的编码自动化 API。

示例

请参阅Google 表格编码自动化 APIGmail 编码自动化 APIGoogle Drive 编码自动化 API概述页面,查看使用编码自动化的示例。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新