Récupérer une IP dédiée
Get /settings/ips/{id}
Paramètres dans l'URL :
| Nom | Description | Type | Obligatoire |
|---|---|---|---|
| id | Id de l'IP | String | Oui |
Réponse :
| 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.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/55g654h6r54jty86j7t6h54r
require 'vendor/autoload.php';
$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');
try {
$result = $tipimail->getSettingsService()->getDedicatedIpsService()->get('646r54g6r4gr6g46g46546d4');
var_dump($result);
}
catch(Tipimail\Exceptions\TipimailException $e) {
echo 'Exception received :', $e->getMessage(), "\n";
}