API call example:
JSON
{
"function":"mailkit.profile.queries.list",
"id":"client_id",
"md5":"client_md5",
"parameters":{ }
}
XML
<?xml version="1.0"?>
<methodCall>
<methodName>mailkit.profile.queries.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
{
"data": [
{
"CREATE_NAME": "create_name",
"CHANGE_DATE": "0000-00-00 00:00:00",
"CHANGE_NAME": "",
"DESCRIPTION": "description",
"DATE": "2017-10-09 09:31:04",
"NAME": "name",
"ID_QUERY": 123
}
],
"error_status": 0
}
XML
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>error_status</name>
<value>
<i4>0</i4>
</value>
</member>
<member>
<name>data</name>
<value>
<array>
<data>
<value>
<struct>
<member>
<name>DATE</name>
<value>
<string>2016-02-26 19:48:43</string>
</value>
</member>
<member>
<name>CHANGE_DATE</name>
<value>
<string>2016-02-26 20:05:57</string>
</value>
</member>
<member>
<name>CHANGE_NAME</name>
<value>
<string>change_name</string>
</value>
</member>
<member>
<name>ID_QUERY</name>
<value>
<i4>123</i4>
</value>
</member>
<member>
<name>NAME</name>
<value>
<string>name</string>
</value>
</member>
<member>
<name>DESCRIPTION</name>
<value>
<string>description</string>
</value>
</member>
<member>
<name>CREATE_NAME</name>
<value>
<string>create_name</string>
</value>
</member>
</struct>
</value>
</data>
</array>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
Values
error_status = 0 - call succesfull without errors, 1 - call couldn't be processed
NAME = name of the query
DESCRIPTION = query description
ID_CONDITION = Query ID
CREATE_NAME = username of the query creator
DATE = date query was created
CHANGE_NAME = username of the last query modifier
CHANGE_DATE = date of the last query modification