All URIs are relative to https://api.messente.com/v1
| Method | HTTP request | Description |
|---|---|---|
| createStatisticsReport | POST /statistics/reports | Requests statistics reports for each country |
StatisticsReportSuccess createStatisticsReport(statistics_report_settings)
Requests statistics reports for each country
var MessenteApi = require('messente_api');
var defaultClient = MessenteApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';
var apiInstance = new MessenteApi.StatisticsApi();
var statistics_report_settings = {"start_date":"2017-01-01","end_date":"2019-06-20","message_types":["sms"]}; // StatisticsReportSettings | Settings for statistics report
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createStatisticsReport(statistics_report_settings, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| statistics_report_settings | StatisticsReportSettings | Settings for statistics report |
- Content-Type: application/json
- Accept: application/json