文書目次

用語集API

用語集を照会します。

POST/v1/glossary/query

IDによって用語集の詳細を取得します。

完全な住所
https://otranslator.com/api/v1/glossary/query
認証
Authorizationリクエストヘッダーに API Key を渡す必要があります
Content-Type
application/json
誤った形式
{ "error": "Invalid API key." }

curl
1curl -X POST 'https://otranslator.com/api/v1/glossary/query' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5  "glossaryId": "[string]"
6}'

リクエストパラメータ

パラメータタイプデフォルト説明
*glossaryIdString-

用語集 ID

-

レスポンス

パラメータタイプデフォルト説明
glossaryIdString-

用語集 ID

-
nameString-

用語集名

-
descString-

用語集の説明

-
targetLangString-

対象言語

-
keysString[]-

ソース用語リスト

-
translatedJSON-

原文用語から訳文へのJSONマッピング

-
createdAtDateTime-

用語集の作成時間

-
updatedAtDateTime-

用語集の更新時間

-

よくあるエラー

401 Missing API key.

The Authorization request header is required.

401 Invalid API key.

The API key does not exist, has been deleted, or is no longer valid.

400 Missing required parameter: glossaryId.

Provide the glossaryId returned by the create glossary API.

404 Glossary not found.

The glossary does not exist or does not belong to the current API account.

用語集API
用語集を作成