Lister les webhooks

Get /settings/webhooks

Paramètres :

Aucun

Réponse :

Noeud de webhook composé de :

Nom Description Type
id Id du webhook String
url Url du webhook String
description Description du webhook String
events Evénements utilisés par le webhook Array of String
success Nombre d'appels en succès Int
errors Nombre d'appels en erreur Int
createdAt Date de création String
updatedAt Date de mise à jour String
Langage de programmation :

Exemple de réponse :

							[
							  {
							    "id": "561d21979932836f57bbb894",
							    "url": "http://www.example.com/1444749717",
							    "description": "Webhook description",
							    "createdAt": "1444749719",
							    "updatedAt": "1444749719",
							    "success": 10,
							    "errors": 0,
							    "events": [
							      "clicked",
							      "complaint",
							      "delivered",
							      "error",
							      "hardbounced",
							      "opened",
							      "rejected",
							      "softbounced",
							      "unsubscribed"
							    ]
							  },
							  {
							    "id": "561d21a79932badc2d674d52",
							    "url": "http://www.example.com/1444749734",
							    "description": "Webhook description",
							    "createdAt": "1444749735",
							    "updatedAt": "1444749735",
							    "errors": 0,
							    "success": 20,
							    "events": [
							      "delivered",
							      "opened",
							      "clicked"
							    ]
							  }
							]
							

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
							
require 'vendor/autoload.php';

$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');

try {
	
	$result = $tipimail->getSettingsService()->getWebhooksService()->getAll();
	var_dump($result);
		
}
catch(Tipimail\Exceptions\TipimailException $e) {
	echo 'Exception received :', $e->getMessage(), "\n";
	
}