API
Requirements
To submit a request, you must send an XML POST request to the 'XML Path'. You can find it in the 'User account ⇨ Edit user' section, under the 'User Permissions' tab. Make sure that 'Enable the XML API' is checked and saved. The XML path looks something like this:
https://www.yourdomain.com/mailcamp/xml.php
Note! As of 1 September 2019, API calls using TLS 1.0 are no longer supported.
The 'username' and 'usertoken' used in the following examples can be found in the same section, under the titles 'XML Username' and 'XML token' respectively.
Submitting a request
The following example code is written in PHP and uses PHP's CURL functionality to submit the accompanying XML to the application.