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"}'