Mục lục tài liệu

API Bảng thuật ngữ

Truy vấn bảng thuật ngữ

POST/v1/glossary/query

Lấy thông tin chi tiết của bảng thuật ngữ theo ID.

Địa chỉ đầy đủ
https://otranslator.com/api/v1/glossary/query
Xác thực
Cần truyền API Key vào request header Authorization
Content-Type
application/json
Lỗi định dạng
{ "error": "Invalid API key." }

Ví dụ

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}'

Tham Số Yêu Cầu

Tham sốLoạiMặc ĐịnhMô TảVí dụ
*glossaryIdString-

ID bảng thuật ngữ

-

Phản Hồi

Tham sốLoạiMặc ĐịnhMô TảVí dụ
glossaryIdString-

ID bảng thuật ngữ

-
nameString-

Tên bảng thuật ngữ

-
descString-

Mô tả bảng thuật ngữ

-
targetLangString-

Ngôn ngữ đích

-
keysString[]-

Danh sách thuật ngữ nguồn

-
translatedJSON-

Ánh xạ JSON từ thuật ngữ gốc sang bản dịch

-
createdAtDateTime-

Thời gian tạo bảng thuật ngữ

-
updatedAtDateTime-

Thời gian cập nhật bảng thuật ngữ

-

Lỗi thường gặp

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 Bảng thuật ngữ
Tạo bảng thuật ngữ
API Bảng thuật ngữ
Cập nhật bảng thuật ngữ