API call example:
XML
<?xml version="1.0"?>
<methodCall>
<methodName>mailkit.campaigns.messages.last</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>
<i4>428083</i4>
</value>
</param>
</params>
</methodResponse>
Values
ID_SEND = ID of the last campaign 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)