The ListCampaigns method is obsolete, please use ListCampaigns2 instead.
This method listed all the campaigns within the your dotMailer account.
This method does not return the HTML content. If you then need to get a specific campaigns content use GetCampaign to get the single campaign.
Parameters
| username |
string |
This is the username from your API key. It is in the format of an email address and will look similar to apiuser‑908709770324@apiconnector.com |
required |
| password |
string |
This is the password from your API key. |
required |
Return values
The result is an array of APICampaign objects, each consisting of the following:
| fromName |
string |
The name the email will be set to be from. |
| htmlContent |
string |
The contents of the HTML campaign. |
| id |
int |
The campaign ID. |
| name |
string |
The name of the campaign. |
| plaintextContent |
string |
The contents of the Plain Text version of the campaign. |
| reply action |
|
Unset or WebMailForward or Webmail or Delete. |
| replyToAddress |
|
The email address replies should be forwarded to. |
| status |
|
NotSet or Unsent or Sending or Sent or Paused or Cancelled or RequiresApproval or Requires SMSApproval or Triggered. |
| subject |
string |
The subject line of the email. |