API call example:
JSON
{
"function":"mailkit.mailinglist.create",
"id":"client_id",
"md5":"client_md5",
"parameters":{
"name":"Mailing list name",
"description":"Mailing list description"
}
}
XML
<?xml version="1.0"?>
<methodCall>
<methodName>mailkit.mailinglist.create</methodName>
<params>
<param>
<value>
<int>client_id</int>
</value>
</param>
<param>
<value>
<string>client_md5</string>
</value>
</param>
<param>
<value>
<string>name</string>
</value>
</param>
<param>
<value>
<string>description</string>
</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.
name * = name of the new mailing list
description = description of the new mailing list
* required value
Successful call response:
JSON
{
"data": "12345"
}
XML
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>data</name>
<value>
<i4>12345</i4>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
Values
data = ID of the new mailing list
Unsuccessful call response:
JSON
{
"error_status": 1,
"error": "Missing name of mailing list"
}
XML
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<string>Missing name of mailing list</string>
</value>
</param>
</params>
</methodResponse>
Values
Missing name of mailing list – The name of mailing list is missing.