All URIs are relative to https://api.mimepost.com/v1/
Method | HTTP request | Description |
---|---|---|
emaillogsGet | GET /emaillogs/ | Get the logs of a particular date |
statsGet | GET /stats/ | Get the summary of stats for a range of dates |
\MimePost\Client\Model\ApiResponseEmaillogs emaillogsGet($start_date, $end_date, $status, $to, $page, $limit)
Get the logs of a particular date
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Auth-Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Auth-Token', 'Bearer');
$apiInstance = new MimePost\Client\Api\StatsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$start_date = "start_date_example"; // string | Start Date in yyyymmdd format example 20190801
$end_date = "end_date_example"; // string | End Date in yyyymmdd format example 20190803
$status = "status_example"; // string |
$to = "to_example"; // string |
$page = 56; // int |
$limit = 56; // int |
try {
$result = $apiInstance->emaillogsGet($start_date, $end_date, $status, $to, $page, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StatsApi->emaillogsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
start_date | string | Start Date in yyyymmdd format example 20190801 | |
end_date | string | End Date in yyyymmdd format example 20190803 | |
status | string | [optional] | |
to | string | [optional] | |
page | int | [optional] | |
limit | int | [optional] |
\MimePost\Client\Model\ApiResponseEmaillogs
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\MimePost\Client\Model\ApiResponseStats statsGet($start_date, $end_date)
Get the summary of stats for a range of dates
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Auth-Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Auth-Token', 'Bearer');
$apiInstance = new MimePost\Client\Api\StatsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$start_date = "start_date_example"; // string | Start Date in yyyymmdd format example 20190801
$end_date = "end_date_example"; // string | End Date in yyyymmdd format example 20190803
try {
$result = $apiInstance->statsGet($start_date, $end_date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StatsApi->statsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
start_date | string | Start Date in yyyymmdd format example 20190801 | |
end_date | string | End Date in yyyymmdd format example 20190803 |
\MimePost\Client\Model\ApiResponseStats
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]