document-understanding
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Document Understanding API 指南

上次更新日期 2025年1月16日

授权使用外部应用程序并检索可用资源

  1. 创建一个新的 Document UnderstandingTM 项目并检索 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 Logo White
© 2005-2025 UiPath。保留所有权利。