All URIs are relative to https://api.messente.com/v1, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createStatisticsReport() | POST /statistics/reports | Requests statistics reports for each country |
createStatisticsReport($statisticsReportSettings): \Messente\Api\Model\StatisticsReportSuccess
Requests statistics reports for each country
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = Messente\Api\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new Messente\Api\Api\StatisticsApi(
// 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
);
$statisticsReportSettings = {"start_date":"2017-01-01","end_date":"2019-06-20","message_types":["sms"]}; // \Messente\Api\Model\StatisticsReportSettings | Settings for statistics report
try {
$result = $apiInstance->createStatisticsReport($statisticsReportSettings);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StatisticsApi->createStatisticsReport: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
statisticsReportSettings | \Messente\Api\Model\StatisticsReportSettings | Settings for statistics report |
\Messente\Api\Model\StatisticsReportSuccess
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]