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

API Tài khoản

Truy vấn thông tin tài khoản

POST/v1/me

Truy vấn thông tin chi tiết tài khoản người dùng hiện tại.

Địa chỉ đầy đủ
https://otranslator.com/api/v1/me
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." }

Lưu ý

API này sử dụng API Key trong request header Authorization để nhận diện tài khoản hiện tại.

Ví dụ

curl
1curl -X POST 'https://otranslator.com/api/v1/me' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'

Phản Hồi

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

Điểm còn lại

-

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.

API Bảng thuật ngữ
Xóa bảng thuật ngữ