สารบัญเอกสาร

API บัญชีผู้ใช้

สอบถามข้อมูลบัญชี

POST/v1/me

สอบถามรายละเอียดบัญชีผู้ใช้ปัจจุบัน

ที่อยู่แบบเต็ม
https://dltranslator.com/api/v1/me
การรับรอง
ต้องส่งผ่าน API Key ในส่วนหัวคำขอ Authorization
Content-Type
application/json
รูปแบบผิดพลาด
{ "error": "Invalid API key." }

ข้อควรระวัง

อินเทอร์เฟซนี้ใช้ API Key ในส่วนหัว Authorization request เพื่อระบุบัญชีปัจจุบัน

ตัวอย่าง

curl
1curl -X POST 'https://dltranslator.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 อภิธานศัพท์
ลบอภิธานศัพท์