Document Understanding
最新
False
  • 入门指南
    • 概述
    • 限制和配额
  • 使用 Document Understanding API 的示例
  • 许可
横幅背景图像
Document Understanding API 指南
上次更新日期 2024年5月16日

创建新项目和外部应用程序

  1. 创建一个新的 Document Understanding 项目并检索 projectId (在项目的 URL 中找到)。
    在此示例中,我们使用 Swagger 中提供的预定义项目,可通过以下{ projectID标识: 00000000-0000-0000-0000-000000000000。
    备注:

    预定义项目在 Document Understanding 用户界面中不可见。 它提供对可用公共 ML 模型的编程访问权限。

  2. 创建一个外部应用程序,其中 Document Understanding 用作 资源 ,并且包含所有可用的 应用程序作用域
  3. 发起对身份服务的 curl 调用,以获取令牌。
curl --data \
-urlencode "scope=Du.Digitization"  --data \
-urlencode "client_id={app_id}" --data \
-urlencode "client_secret={app_secret}" --data \
-urlencode "grant_type=client_credentials" https://cloud.uipath.com/identity_/connect/tokencurl --data \
-urlencode "scope=Du.Digitization"  --data \
-urlencode "client_id={app_id}" --data \
-urlencode "client_secret={app_secret}" --data \
-urlencode "grant_type=client_credentials" https://cloud.uipath.com/identity_/connect/token
注意: 授权令牌具有到期日。 请参阅以下响应以了解到期情况,并确保在到期前续订。

{ 
"access_token": "eyJh**CRaKrg", 
"expires_in": 3600, 
"token_type": "Bearer", 
"scope": "Du.Digitization.Api" 
}{ 
"access_token": "eyJh**CRaKrg", 
"expires_in": 3600, 
"token_type": "Bearer", 
"scope": "Du.Digitization.Api" 
}

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.