All URIs are relative to http://localhost:9000/api
Method | HTTP request | Description |
---|---|---|
campaignsCampaignIdContentPost | POST /campaigns/{campaign_id}/content | |
campaignsCampaignIdDelete | DELETE /campaigns/{campaign_id} | |
campaignsCampaignIdGet | GET /campaigns/{campaign_id} | |
campaignsCampaignIdPreviewGet | GET /campaigns/{campaign_id}/preview | |
campaignsCampaignIdPut | PUT /campaigns/{campaign_id} | |
campaignsCampaignIdStatusPut | PUT /campaigns/{campaign_id}/status | |
campaignsCampaignIdTestPost | POST /campaigns/{campaign_id}/test | |
campaignsCampaignIdTextGet | GET /campaigns/{campaign_id}/text | |
campaignsGet | GET /campaigns | |
campaignsPost | POST /campaigns | |
campaignsRunningStatsGet | GET /campaigns/running/stats |
ImportSubscribersLogsGet200Response campaignsCampaignIdContentPost(campaignId)
handles campaign content (body) format conversions.
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let campaignId = 3.4; // Number |
apiInstance.campaignsCampaignIdContentPost(campaignId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignId | Number |
ImportSubscribersLogsGet200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
HealthGet200Response campaignsCampaignIdDelete(campaignId)
deletes specified campaign
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let campaignId = 3.4; // Number | The id value of the campaign you want to get.
apiInstance.campaignsCampaignIdDelete(campaignId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignId | Number | The id value of the campaign you want to get. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Campaign campaignsCampaignIdGet(campaignId)
handles retrieval of campaigns.
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let campaignId = 3.4; // Number | The id value of the campaign you want to get.
apiInstance.campaignsCampaignIdGet(campaignId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignId | Number | The id value of the campaign you want to get. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
String campaignsCampaignIdPreviewGet(campaignId)
renders the HTML preview of a campaign body
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let campaignId = 3.4; // Number | The id value of the campaign you want to get the preview of
apiInstance.campaignsCampaignIdPreviewGet(campaignId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignId | Number | The id value of the campaign you want to get the preview of |
String
No authorization required
- Content-Type: Not defined
- Accept: text/html
CampaignUpdate campaignsCampaignIdPut(campaignId)
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let campaignId = 3.4; // Number | the id value of campaign you want to update
apiInstance.campaignsCampaignIdPut(campaignId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignId | Number | the id value of campaign you want to update |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Campaign campaignsCampaignIdStatusPut(campaignId, opts)
handles campaign status modification
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let campaignId = 3.4; // Number | The id value of the campaign you want to get the preview of
let opts = {
'campaignsCampaignIdStatusPutRequest': new Listmonk.CampaignsCampaignIdStatusPutRequest() // CampaignsCampaignIdStatusPutRequest |
};
apiInstance.campaignsCampaignIdStatusPut(campaignId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignId | Number | The id value of the campaign you want to get the preview of | |
campaignsCampaignIdStatusPutRequest | CampaignsCampaignIdStatusPutRequest | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
HealthGet200Response campaignsCampaignIdTestPost(campaignId, templateId, opts)
handles sending of campaign message to arbitrary subscribers for testing
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let campaignId = 3.4; // Number |
let templateId = 3.4; // Number |
let opts = {
'campaignRegistrationInfo': new Listmonk.CampaignRegistrationInfo() // CampaignRegistrationInfo |
};
apiInstance.campaignsCampaignIdTestPost(campaignId, templateId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignId | Number | ||
templateId | Number | ||
campaignRegistrationInfo | CampaignRegistrationInfo | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
String campaignsCampaignIdTextGet(id, templateId)
renders the HTML preview of a campaign body
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let id = 3.4; // Number | The id value of the campaign you want to get the preview of
let templateId = 3.4; // Number | The id of the template you want to get the preview of
apiInstance.campaignsCampaignIdTextGet(id, templateId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The id value of the campaign you want to get the preview of | |
templateId | Number | The id of the template you want to get the preview of |
String
No authorization required
- Content-Type: Not defined
- Accept: text/html
CampaignsGet200Response campaignsGet(opts)
handles retrieval of campaigns
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let opts = {
'page': 56, // Number | Page number for paginated results
'perPage': 56 // Number | max number of records to return per page
};
apiInstance.campaignsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
page | Number | Page number for paginated results | [optional] |
perPage | Number | max number of records to return per page | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
NewCampaign campaignsPost(opts)
handles campaign creation
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let opts = {
'campaignRegistrationInfo': new Listmonk.CampaignRegistrationInfo() // CampaignRegistrationInfo |
};
apiInstance.campaignsPost(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignRegistrationInfo | CampaignRegistrationInfo | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
LogsGet200Response campaignsRunningStatsGet(opts)
returns stats of a given set of campaign IDs.
import Listmonk from 'listmonk';
let apiInstance = new Listmonk.CampaignsApi();
let opts = {
'campaignId': 3.4 // Number | The id values of the campaigns whose stat you want to get.
};
apiInstance.campaignsRunningStatsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
campaignId | Number | The id values of the campaigns whose stat you want to get. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json