API call example:
JSON
{
"id":"client_id",
"md5":"client_md5",
"function":"mailkit.email.delete",
"parameters":{
"ID_email":"example@example.com"
}
}
XML
<?xml version="1.0"?>
<methodCall>
<methodName>mailkit.email.delete</methodName>
<params>
<param>
<value>
<int>client_id</int>
</value>
</param>
<param>
<value>
<string>client_md5</string>
</value>
</param>
<param>
<value>
<int>email_id</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.
email_id * = may contain ID of e-mail address, (returned by mailkit.mailinglist.adduser), or e-mail address. If an email address is provided a list of all deleted records will be returned.
* required value
Successful call response:
JSON
{
"error": "OK",
"error_status": 0,
"emails": "1234567890,1236547895"
}
XML
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<i4>1234567890</i4>
</value>
</param>
</params>
</methodResponse>
Values
ID of successful deleted e-mail(s).
Unsuccessful call response:
JSON
{
"error_status": 1,
"error": "Invalid ID_email or email"
}
XML
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<string>Invalid ID_email</string>
</value>
</param>
</params>
</methodResponse>
Values
Invalid ID_email or email (JSON)
Invalid ID_email (XML)