Aggiornata webhook
PUT
/webhook/:id
Parametri query
id
richiesto
|
L'identificazione del webhook |
Parametri del body
type
richiesto
|
L'url del webhook (MO / DLR / STOP / CLICKER) |
url
richiesto
|
Il tipo del webhook |
signature | You can create a secret signature so we can sign the webhook requests with that secret in the header X-SMSFactor-Signature |
Esempi
PUT /webhook/66 HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
{
"webhook":{
"type": "STOP",
"url": "https://mywebhook.com/stop",
"signature": "mysignature123"
}
}
PUT /webhook/66 HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<webhook>
<type>STOP</type>
<url>https://mywebhook.com/stop</url>
</webhook>
Formato della risposta
{
"status": 1,
"message": "OK",
"webhook": {
"webhook_id": "66",
"type": "STOP",
"url": "https://mywebhook.com/stop"
"status": "live",
"signature": "mysignature123",
"last_http_code": 200
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<webhook>
<webhook_id>66</webhook_id>
<type>STOP</type>
<url>https://mywebhook.com/stop</url>
<status>live</status>
<signature>mysignature123</signature>
<last_http_code>200</last_http_code>
</webhook>
</response>
Gli indirizzi IP dei nostri server
Potresti dover autorizzare sul tuo firewall gli indirizzi IP dei nostri server per permetterci di inviarti richieste. Ecco la lista degli indirizzi IP dei nostri server
- 163.172.210.135
- 163.172.210.137
- 51.159.7.123
- 51.159.21.54