Use the API to retrieve a list of newsletters in a users account.
Submit an XML Request with the following details:
Post URL: http://cp.semsblast.com/api/v3.0/newsletters/listNewsletters/
Fields to Post | |||
apiKey | String | REQUIRED | The APIKey of the requesting user. |
Data Sent Back | ||
error | Int | Indicates wether an error has occured. 0 for no error. 1 for error. |
status | String | If there's been an error, a text description of the error that occured will be here. |
newsletterCnt | Int | The total number of email newsletters returned. |
newsletters | ||
----> newsletter | ||
--------> newsletterID | Int | The ID of the newsletter. |
--------> name | String | The friendly name of the newsletter. |
--------> dateCreated | Date Time | The date the newsletter was created. |
--------> lastUpdated | Date Time | The date the newsletter was last modified. |
--------> newsletterHTML | HTML | The HTML source code of the newsletter. |
<xml> <apiKey>44-121312131223</apiKey> </xml> |
<xml> <error>0</error> <status>success</status> <newsletterCnt>1</newsletterCnt> <newsletters> <newsletter> <newsletterID>123</newsletterID> <name>Sample Newsletter</name> <dateCreated>2014-05-02 12:23</dateCreated> <lastUpdated>2014-06-03 11:20</lastUpdated> <newsletterHTML><strong>Welcome to our Newsletter</strong>Here is our newsletter</newsletterHTML> </newsletter> </newsletters> </xml> |