Update a webhook status
PUT
/webhook/:id/status
Parametri query
id
richiesto
|
L'identificazione del webhook |
Parametri del body
status
richiesto
|
The webhook status live or paused |
Esempi
PUT /webhook/66 HTTP/1.1
Host: api.smsfactor.com
Authorization: Bearer your.token
Accept: application/json
{
"webhook":{
"status": "live"
}
}
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>
<status>live</status>
</webhook>
Formato della risposta
{
"status": 1,
"message": "OK",
"webhook": {
"webhook_id": "66",
"status": "live",
}
}
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>1</status>
<message>OK</message>
<webhook>
<webhook_id>66</webhook_id>
<status>live</status>
</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