UNLOCK API
test

test

echo สำหรับดีบัก คืน body JSON ที่ได้รับโดยไม่มี clientKey ไม่ตรวจ key และไม่คิดเงิน
POSThttps://unlock-api.com/test
ไม่มีพารามิเตอร์ที่จำเป็น ส่ง body JSON แบบใดก็ได้

คำขอ

POST /test
{
  "clientKey": "YOUR_API_KEY",
  "hello": "world"
}

คำตอบ

สำเร็จ
{
  "errorId": 0,
  "received": {
    "hello": "world"
  }
}

ฟิลด์ของคำตอบ

errorId
Integer
0 เมื่อคำขอสำเร็จ 1 เมื่อไม่สำเร็จ
received
Object
body ที่ส่งมา โดยไม่มี clientKey

ตัวอย่างโค้ด

curl -s https://unlock-api.com/test \
  -H "Content-Type: application/json" \
  -d '{"clientKey":"YOUR_API_KEY","hello":"world"}'