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