All URIs are relative to https://api.elasticemail.com/v4
Method | HTTP request | Description |
---|---|---|
statisticsCampaignsByNameGet | GET /statistics/campaigns/{name} | Load Campaign Stats |
statisticsCampaignsGet | GET /statistics/campaigns | Load Campaigns Stats |
statisticsChannelsByNameGet | GET /statistics/channels/{name} | Load Channel Stats |
statisticsChannelsGet | GET /statistics/channels | Load Channels Stats |
statisticsGet | GET /statistics | Load Statistics |
ChannelLogStatusSummary statisticsCampaignsByNameGet(name)
Load Campaign Stats
Retrieve stats of an existing campaign. Required Access Level: ViewChannels
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.StatisticsApi();
let name = "name_example"; // String | The name of the campaign to get.
apiInstance.statisticsCampaignsByNameGet(name, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
name | String | The name of the campaign to get. |
- Content-Type: Not defined
- Accept: application/json
[ChannelLogStatusSummary] statisticsCampaignsGet(opts)
Load Campaigns Stats
Returns a list of your Campaigns' stats. Required Access Level: ViewChannels
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.StatisticsApi();
let opts = {
'limit': 100, // Number | Maximum number of returned items.
'offset': 20 // Number | How many items should be returned ahead.
};
apiInstance.statisticsCampaignsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
limit | Number | Maximum number of returned items. | [optional] |
offset | Number | How many items should be returned ahead. | [optional] |
- Content-Type: Not defined
- Accept: application/json
ChannelLogStatusSummary statisticsChannelsByNameGet(name)
Load Channel Stats
Retrieve an existing channel stats. Required Access Level: ViewChannels
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.StatisticsApi();
let name = "name_example"; // String | The name of the channel to get.
apiInstance.statisticsChannelsByNameGet(name, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
name | String | The name of the channel to get. |
- Content-Type: Not defined
- Accept: application/json
[ChannelLogStatusSummary] statisticsChannelsGet(opts)
Load Channels Stats
Returns a list of your Channels' stats. Required Access Level: ViewChannels
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.StatisticsApi();
let opts = {
'limit': 100, // Number | Maximum number of returned items.
'offset': 20 // Number | How many items should be returned ahead.
};
apiInstance.statisticsChannelsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
limit | Number | Maximum number of returned items. | [optional] |
offset | Number | How many items should be returned ahead. | [optional] |
- Content-Type: Not defined
- Accept: application/json
LogStatusSummary statisticsGet(from, opts)
Load Statistics
Returns basic statistics. Required Access Level: ViewReports
import ElasticEmail from '@elasticemail/elasticemail-client';
let defaultClient = ElasticEmail.ApiClient.instance;
// Configure API key authorization: apikey
let apikey = defaultClient.authentications['apikey'];
apikey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.apiKeyPrefix = 'Token';
let apiInstance = new ElasticEmail.StatisticsApi();
let from = new Date("2013-10-20T19:20:30+01:00"); // Date | Starting date for search in YYYY-MM-DDThh:mm:ss format.
let opts = {
'to': new Date("2013-10-20T19:20:30+01:00") // Date | Ending date for search in YYYY-MM-DDThh:mm:ss format.
};
apiInstance.statisticsGet(from, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
from | Date | Starting date for search in YYYY-MM-DDThh:mm:ss format. | |
to | Date | Ending date for search in YYYY-MM-DDThh:mm:ss format. | [optional] |
- Content-Type: Not defined
- Accept: application/json