文檔目錄

帳戶 API

查詢帳號資訊

POST/v1/me

查詢目前使用者帳戶詳情。

完整地址
https://otranslator.com/api/v1/me
認證
需要在 Authorization 請求頭中傳入 API Key
Content-Type
application/json
錯誤格式
{ "error": "Invalid API key." }

注意事項

該接口使用 Authorization 請求頭中的 API Key 識別當前帳號。

範例

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

響應

參數類型預設描述範例
balanceInteger-

剩餘積分

-

常見錯誤

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
刪除術語表