UNLOCK API
test

test

Echo per il debug. Restituisce il body JSON ricevuto, senza clientKey. Nessun controllo della chiave, nessun addebito.
POSThttps://unlock-api.com/test
Nessun parametro obbligatorio. Invia un qualsiasi body JSON.

Richiesta

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

Risposta

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

Campi della risposta

errorId
Integer
0 se la richiesta è andata a buon fine, 1 in caso contrario.
received
Object
Il body inviato, senza clientKey.

Esempi di codice

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