Paramètres de configuration
Get /settings/sendingconfiguration
Paramètres :
Aucun
Réponse :
Nom | Description | Type | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accountId | ID du compte | Int | ||||||||||||||||||||||||
trackOpens | Activer le tracking à l'ouverture | Boolean | ||||||||||||||||||||||||
trackClicks | Activer le tracking au clic | Boolean | ||||||||||||||||||||||||
googleAnalytics |
|
Array | ||||||||||||||||||||||||
trackMailTo | Activer le tracking pour les liens mailto | Boolean | ||||||||||||||||||||||||
unsubscribe |
|
Array |
Langage de programmation :
Exemple de réponse :
{ "accountId": "123456789", "trackOpens": false, "trackClicks": false, "googleAnalytics": {}, "unsubscribe": {} }
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/sendingconfiguration
require 'vendor/autoload.php'; $tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY'); try { $result = $tipimail->getSettingsService()->getSendingConfigurationService()->get(); var_dump($result); } catch(Tipimail\Exceptions\TipimailException $e) { echo 'Exception received :', $e->getMessage(), "\n"; }