XML-RPC request must be sent in the format displayed below. Example in PHP here.
API call example:
JSON
{
"function":"mailkit.mailinglist.list",
"id":"client_id",
"md5":"client_md5"
}
XML
<?xml version="1.0"?>
<methodCall>
<methodName>mailkit.mailinglist.list</methodName>
<params>
<param>
<value>
<int>client_id</int>
</value>
</param>
<param>
<value>
<string>client_md5</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.
* required value
Successful call response:
JSON
[
{
"NAME":"Testovací seznam",
"ID_USER_LIST":"123456",
"STATUS":"enabled",
"DESCRIPTION":"popis seznamu"
},
{
"NAME":"Druhý seznam",
"ID_USER_LIST":"123457",
"STATUS":"disabled",
"DESCRIPTION":""
}
]
XML
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>NAME</name>
<value>
<string>mailinglist's name</string>
</value>
</member>
<member>
<name>ID_USER_LIST</name>
<value>
<i4>12345</i4>
</value>
</member>
<member>
<name>STATUS</name>
<value>
<string>enabled</string>
</value>
</member>
<member>
<name>DESCRIPTION</name>
<value>
<string>mailingslist's description</string>
</value>
</member>
</struct>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
Values
NAME = name of mailing list
ID_USER_LIST = ID of mailing list
STATUS = status of mailing list. Possible values: enabled or disabled.
DESCRIPTION = description of mailing list