| Package Data | |
|---|---|
| Maintainer Username: | svc-lmbr-boitata |
| Package Create Date: | 2015-07-30 |
| Package Last Update: | 2025-04-14 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:15:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 10,758 |
| Monthly Downloads: | 44 |
| Daily Downloads: | 0 |
| Total Stars: | 3 |
| Total Watchers: | 23 |
| Total Forks: | 3 |
| Total Open Issues: | 1 |
A wrapper to ExactTarget REST API.
[TODO]
<?php
$guzzleClient = new \GuzzleHttp\Client();
$requestBuilder = new \LeroyMerlin\ExactTarget\RequestBuilder($guzzleClient);
$token = new \LeroyMerlin\ExactTarget\Token('YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET', $requestBuilder);
$client = new \LeroyMerlin\ExactTarget\Client($token, $requestBuilder);
$parameters = [
// optional
// 'some-url-param' => 'some-value'
'data' => [
'email' => 'johndoe@example.com',
'validators' => ['SyntaxValidator', 'MXValidator', 'ListDetectiveValidator'],
],
];
try {
$response = $client->validateEmail($parameters);
var_dump((string) $response->getBody());
} catch (\LeroyMerlin\ExactTarget\Exception\ExactTargetClientException $error) {
var_dump($error->getCode(), $error->getMessage());
}
$client = App::make('LeroyMerlin\ExactTarget\Client');
// As in https://code.exacttarget.com/apis-sdks/rest-api/v1/address/validateEmail.html
$parameters = [
// optional
// 'some-url-param' => 'some-value'
'data' => [
'email' => 'johndoe@example.com',
'validators' => ['SyntaxValidator', 'MXValidator', 'ListDetectiveValidator'],
],
];
try {
$response = $client->validateEmail($parameters);
var_dump((string) $response->getBody());
} catch (\LeroyMerlin\ExactTarget\Exception\ExactTargetClientException $error) {
var_dump($error->getCode(), $error->getMessage());
}