Modifier un webhook
Cette méthode permet de modifier un webhook.
PUT
/webhook/:id
Paramètres de requête
id
requis
|
L'id du webhook |
Paramètres du body
type
requis
|
Le type du webhook (MO / DLR / STOP / CLICKER) |
url
requis
|
L'url du webhook |
signature | You can create a secret signature so we can sign the webhook requests with that secret in the header X-SMSFactor-Signature |
Exemples
PUT /webhook/66 HTTP/1.1
Host: api.smsup.ch
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.smsup.ch
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>
Format de la réponse
{
"status": 1,
"message": "OK",
"webhook": {
"webhook_id": "66",
"type": "STOP",
"url": "https://mywebhook.com/stop"
"status": "live",
"signature": "mysignature123",
}
}
<?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>
</webhook>
</response>
Les adresses IP de nos serveurs
Vous allez peut-être devoir autoriser les requêtes issues de nos serveurs à votre pare-feu. Voici la liste des adresses IP de nos serveurs :
- 51.159.7.123
- 51.159.21.54