automation-hub
2024.10
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Automation Hub API 指南
- 将令牌定义为持有者 -H 'Authorization: Bearer [租户 ID]/ [Token_generted_from_the_Open API_page] 。
- 如果在生成令牌时定义了应用程序密钥,则必须使用以下密钥来应用该应用程序密钥: x-ah-openapi-app-key: [已定义的应用程序密钥]
- 必须在标头中添加x-ah-openapi-auth: openapi-token密钥,因为它指示令牌类型。
构建自动化 URL 的最简单方法是使用process_slug 。
例如,如果 process_slug 为: process_slug": "onboarding-of-new-employee"
那么该自动化的 URL 为: https://{yourDomain}/automationhub_/process_slug/onboarding-of-new-employee
The request should look as in the following example:
Content-Type: application/json
Authorization: Bearer [Tenant ID/Token]
x-ah-openapi-app-key: [API key if added]
x-ah-openapi-auth: openapi-token
Content-Type: application/json
Authorization: Bearer [Tenant ID/Token]
x-ah-openapi-app-key: [API key if added]
x-ah-openapi-auth: openapi-token
-
-
如果令牌包含应用程序密钥,则在“应用程序密钥”列后面将提供“复制到剪贴板”选项。用于复制粘贴您的[应用程序密钥]值。
备注:
进行 Automation Hub API 调用所需的[令牌]的有效期会受限制。如果令牌过期,请从与令牌对应的“操作”列中访问“操作”>“编辑”选项,以编辑到期日,或者按照生成令牌页面中所述生成新令牌。否则,您将收到 401 状态代码。