UNLOCK API
test

test

用於調試的回顯。回傳收到的 JSON 主體,不含 clientKey。不檢查密鑰,不扣費。
POSThttps://unlock-api.com/test
沒有必填參數。可發送任意 JSON 主體。

請求

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

回應

成功
{
  "errorId": 0,
  "received": {
    "hello": "world"
  }
}

回應欄位

errorId
Integer
請求成功時為 0,失敗時為 1。
received
Object
收到的請求主體,不含 clientKey。

代碼範例

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