UNLOCK API
test

test

Echo untuk nyahpepijat. Memulangkan body JSON yang diterima, tanpa clientKey. Tiada semakan key, tiada caj.
POSThttps://unlock-api.com/test
Tiada parameter wajib. Hantar sebarang body JSON.

Permintaan

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

Respons

Berjaya
{
  "errorId": 0,
  "received": {
    "hello": "world"
  }
}

Medan respons

errorId
Integer
0 jika permintaan berjaya, 1 jika tidak.
received
Object
Body yang dihantar, tanpa clientKey.

Contoh kod

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