The Campaigns resource represents all actions on and retrieval of campaigns in a given Betwext Broadcast account. The Campaigns resource allows retrieval of all campaigns, creation, updating, and deleting of individual campaigns.
A Campaigns Instance resource is represented by the following properties:
| Property | Description |
|---|---|
| CampaignID | String representing the unique system ID for an individual campaign |
| Name | String representing the name of the campaign. |
| Created | Unix timestamp (GMT) representing the creation time and date of this campaign. |
| ScheduleTime | Unix timestamp (GMT) representing the time and date campaign is to be sent. |
| Message | String representing the message sent to all subscribers. |
| Lists | Comma separated list (string) of IDs of lists campaign is to be sent to. |
| Notes | Text representing the notes of the list. Empty if unavailable for this subscriber. |
| Status | String representing the current status of the campaign. |
| Type | Integer representing type of campaign. |
| SendNumber | Long or Short code E.164 formatted number campaign is to be sent from. |
| ConfirmationEmail | String value representing email address to have campaign confirmation and receipt sent to. |
| BillingSource | String representing billing source for campaign payment. |
Returns account campaigns
Returns a paginated subset of all account campaigns.
Creates a new campaign
The following parameters are required to create a new campaign:
| Property | Description |
|---|---|
| Name | String representing the name of the campaign. |
| Message | String representing the message sent to all subscribers. |
| Lists | Comma separated list (string) of IDs of lists campaign is to be sent to. |
The following parameters are optional to create a new campaign:
| Property | Description |
|---|---|
| ScheduleTime | Unix timestamp (GMT) representing the time and date campaign is to be sent. |
| Notes | Text representing the notes of the campaign. |
| SendNumber | Long or Short code E.164 formatted number campaign is to be sent from. Defaults to your account's initial long code. |
| ConfirmationEmail | String value representing email address to have campaign confirmation and receipt sent to. Defaults to account email address. |
| BillingSource | String representing billing source for campaign payment. Defaults to deducting credits from your account, then tries to charge credit card on file. |
Returns the newly created campaign
Not Supported
Not Supported
Sends a single campaign
The following parameters are required to send a single campaign:
| Property | Description |
|---|---|
| CampaignID | Integer representing the unique ID of an individual campaign. |
Not Supported
Not Supported
Not Supported
Returns a single campaign
The following parameters are required to get a single campaign:
| Property | Description |
|---|---|
| CampaignID | Integer representing the unique ID of an individual campaign |
The response is identical to the New Campaign Resource response outlined above.
Not Supported
Not Supported
Not Supported
Deletes a single campaign
The following parameters are required to delete a single campaign:
| Property | Description |
|---|---|
| CampaignID | Integer representing the unique ID of an individual campaign. |
Deletes the campaign from the account. Returns HTTP 204 response if successful (no body).
Not Supported
Not Supported
Not Supported