Document Understanding
最新
偽
- 基本情報
- Document Understanding API の使用例
- ライセンス
新しいプロジェクトと外部アプリケーションを作成する
Document Understanding API ガイド
最終更新日 2024年3月7日
新しいプロジェクトと外部アプリケーションを作成する
- 新しい Document Understanding プロジェクトを作成し、
projectId
を取得します (プロジェクトの URL 内にあります)。この例では、Swagger で利用できる、projectID
00000000-0000-0000-0000-000000000000 で識別可能な定義済みのプロジェクト* を使用します。注:定義済みのプロジェクトは、Document Understanding の UI に表示されません。これは、利用可能なパブリック ML モデルにプログラムによってアクセスできるようにします。
- DocumentUnderstanding (ドキュメントの理解) をリソースとして使用し、利用可能なアプリケーション スコープがすべて含まれる外部アプリケーションを作成します。
- ID サービスに対する 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/token
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/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"
}