Tester un webhook
Get /settings/webhooks/{id}/test
Paramètres dans l'URL :
| Nom | Description | Type | Obligatoire |
|---|---|---|---|
| id | Id du webhook | String | Oui |
Réponse :
| Nom | Description | Type |
|---|---|---|
| status | success / failure | String |
Langage de programmation :
Exemple de réponse :
{
"status": "success"
}
Exemple de code :
curl -X GET -H "Content-Type: application/json" -H "X-Tipimail-ApiUser:YOUR_SMTP_USERNAME" -H "X-Tipimail-ApiKey:YOUR_SMTP_KEY" https://api.tipimail.com/v1/settings/webhooks/f4re5f5re4gre7gre8g87g58/test
require 'vendor/autoload.php';
$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');
try {
$tipimail->getSettingsService()->getWebhooksService()->test('646r54g6r4gr6g46g46546d4');
}
catch(Tipimail\Exceptions\TipimailException $e) {
echo 'Exception received :', $e->getMessage(), "\n";
}