API call example:
XML
<?xml version="1.0"?>
<methodCall>
<methodName>mailkit.campaigns.messages</methodName>
<params>
<param>
<value>
<int>client_id</int>
</value>
</param>
<param>
<value>
<string>client_md5</string>
</value>
</param>
<param>
<value>
<int>ID_message</int>
</value>
</param>
</params>
</methodCall>
Values
client_id * = client ID can be found in your Mailkit account's menu Profile/Integration.
client_md5 * = MD5 code can be found in your Mailkit account's menu Profile/Integration.
ID_message * = ID of campaign
* required value
Successful call response:
XML
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>DATE</name>
<value>
<string>yyyy-mm-dd hh:mm:ss</string>
</value>
</member>
<member>
<name>ID_SEND</name>
<value>
<i4>12345</i4>
</value>
</member>
</struct>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
Values
DATE = date of message delivery ( yyyy-mm-dd hh:mm:ss)
ID_SEND = ID of message delivery
Unsuccessful call response:
XML
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<string>Missing ID_campaign</string>
</value>
</param>
</params>
</methodResponse>
Values
Missing ID_campaign = campaign ID is missing
(In case of an invalid value for the campaign ID, the API returns an empty response)