Liste des IPs dédiées
Post /settings/ips
Paramètres :
Aucun
Réponse :
Noeud d'IP :
| Nom | Description | Type |
|---|---|---|
| id | Id de l'IP | String |
| type | 0 : transactionnel ; 1 : bulk | Int |
| ip | Adresse IP | String |
| expirationDate | Date au format timestamp | Int |
| subscriptionDate | Date au format timestamp | Int |
Langage de programmation :
Exemple de réponse :
[
{
"ip": "00.00.00.00",
"type": 0,
"id": "5gre654gre6g87trh64htr6f",
"expirationDate": 1440774150,
"subscriptionDate": 1438009350
},
{
"ip": "00.00.00.01",
"type": 0,
"id": "55g654h6r54jty86j7t6h54r",
"expirationDate": 1441360916,
"subscriptionDate": 1438682516
}
]
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/ips
require 'vendor/autoload.php';
$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');
try {
$result = $tipimail->getSettingsService()->getDedicatedIpsService()->getAll();
var_dump($result);
}
catch(Tipimail\Exceptions\TipimailException $e) {
echo 'Exception received :', $e->getMessage(), "\n";
}