title | values |
action |
name of the API method of the current connection, options for values depending on the request: filtrate create gettread update delete getclicks |
connected | 1 - connection was successful |
error | 1 - the request was sent with an error |
message |
Description of the request error. Possible options: You dont match any requirements for access this tread - You have entered the wrong thread ID. You dont have access to it. Account subscription inactive - Inactive subscription. You have reach the traffic limit for today - You have reached your traffic limit for this day. Wrong account subscription type - Inappropriate subscription type to use this method. You dont have access premission for use api here - Insufficient authority to use the API on this server. |
clicklock |
array encoded in json with the result of request processing: success - takes on the value 1 if the request was successfully processed and the issue provided. Further, depending on the method, there may be another array with data, or information about the thread ID. |
$data = array(
'key' => 'YOUR_API_KEY',
'action' => 'filtrate',
'data' => json_encode(array(
'tread' => 'TREAD_ID',
'server' => json_encode($_SERVER),
'serverside' => 'self',
'connection' => 'php'
))
)
Array
(
[action] => filtrate
[connected] => 1
[clicklock] => Array
(
[filter] => no
[page_type] => offerpage
[url] => http://habr.com
[mode] => load
)
)
$data = array(
'key' => 'YOUR_API_KEY',
'action' => 'create',
'data' => json_encode(array(
'server' => json_encode($_SERVER),
'title' => 'Test tread 20-05-2022',
'status' => 'active',
'status_delayed' => '',
'savepage' => 'testdomain.com',
'offerpage_1' => 'yandex.ru',
'offerpage_perc_1' => '',
'offerpage_2' => '',
'offerpage_perc_2' => '',
'offerpage_3' => '',
'offerpage_perc_3' => '',
'offerpage_4' => '',
'offerpage_perc_4' => '',
'offerpage_5' => '',
'offerpage_perc_5' => '',
'mode' => 'load',
'core' => 'default',
'ipv6' => true,
'vpn' => true,
'geo_country' => 'off',
'countrylist' => json_encode(array('United States','Germany')),
'geo_city' => 'off',
'citieslist' => json_encode(array('Washington','Berlin')),
'ip_filter' => 'off',
'ip_list' => json_encode(array('192.168.0.1','234.26.31.23')),
'isp_filter' => 'off',
'isp_list' => json_encode(array('Amazon')),
'devices_filter' => 'off',
'devices_list' => json_encode(array('desktop','windows','mobile','android')),
'referer_filter_empty' => true,
'referer_filter' => 'disallow',
'referer_list' => json_encode(array('google')),
'ua_filter_empty' => false,
'ua_filter' => 'allow',
'ua_list' => json_encode(array('chrome')),
'urlparams_filter_empty' => false,
'urlparams_filter' => 'off',
'urlparams_list_allow' => json_encode(array()),
'urlparams_list_disallow' => json_encode(array('utc_action','test')),
'time_filter' => 'off',
'time_list' => json_encode(array('00_01','13_14','14_15','15_16'))
))
)
Array
(
[action] => create
[connected] => 1
[clicklock] => Array
(
[success] => 1
[tread] => TREAD_ID
)
)
$data = array(
'key' => 'YOUR_API_KEY',
'action' => 'gettread',
'data' => json_encode(array(
'server' => json_encode($_SERVER),
'tread' => 'TREAD_ID'
))
)
Array
(
[action] => gettread
[connected] => 1
[clicklock] => Array
(
[success] => 1
[tread] => Array
(
[id] => TREAD_ID
[title] => test.domain.com 1
[status] => active
[status_delayed] => 0
[savepage] => yandex.ru
[offerpage_1] => habr.com
[offerpage_perc_1] => 100
[offerpage_2] =>
[offerpage_perc_2] =>
[offerpage_3] =>
[offerpage_perc_3] =>
[offerpage_4] =>
[offerpage_perc_4] =>
[offerpage_5] =>
[offerpage_perc_5] =>
[mode] => load
[core] => default
[ipv6] => 1
[vpn] => 1
[geo_country] => allow
[countrylist] => Array
(
[1] => United States
[2] => Russian Federation
)
[geo_city] => allow
[citieslist] => Array
(
[0] => Kiiv
[1] => London
)
[ip_filter] => off
[ip_list] => Array
(
)
[isp_filter] => off
[isp_list] => Array
(
)
[devices_filter] => off
[devices_list] => Array
(
[0] => desktop
[1] => windows
[2] => mac
[3] => linux
[4] => mobile
[5] => ios
[6] => windowsphone
)
[referer_filter_empty] => 1
[referer_filter] => off
[referer_list] => Array
(
)
[ua_filter_empty] => 0
[ua_filter] => disallow
[ua_list] => Array
(
[0] => Chrome
)
[urlparams_filter_empty] => 1
[urlparams_filter] => off
[urlparams_list_allow] => Array
(
)
[urlparams_list_disallow] => Array
(
)
[time_filter] => off
[time_list] => Array
(
[0] => 00_01
[1] => 01_02
[2] => 02_03
[3] => 03_04
)
)
)
)
$data = array(
'key' => 'YOUR_API_KEY',
'action' => 'update',
'data' => json_encode(array(
'server' => json_encode($_SERVER),
'tread' => 'TREAD_ID',
'title' => 'Test tread 20-05-2022 updated',
'status' => 'active',
'status_delayed' => '',
'savepage' => 'testdomain.com',
'offerpage_1' => 'yandex.ru',
'offerpage_perc_1' => '',
'offerpage_2' => '',
'offerpage_perc_2' => '',
'offerpage_3' => '',
'offerpage_perc_3' => '',
'offerpage_4' => '',
'offerpage_perc_4' => '',
'offerpage_5' => '',
'offerpage_perc_5' => '',
'mode' => 'load',
'core' => 'default',
'ipv6' => true,
'vpn' => true,
'geo_country' => 'off',
'countrylist' => json_encode(array('United States','Germany','Spain')),
'geo_city' => 'off',
'citieslist' => json_encode(array('Washington')),
'ip_filter' => 'off',
'ip_list' => json_encode(array('193.162.23.45','234.26.31.23','234.26.31.0/50')),
'isp_filter' => 'off',
'isp_list' => json_encode(array()),
'devices_filter' => 'allow',
'devices_list' => json_encode(array('desktop','windows','mobile','android','ios')),
'referer_filter_empty' => true,
'referer_filter' => 'allow',
'referer_list' => json_encode(array('google')),
'ua_filter_empty' => false,
'ua_filter' => 'allow',
'ua_list' => json_encode(array('chrome')),
'urlparams_filter_empty' => false,
'urlparams_filter' => 'off',
'urlparams_list_allow' => json_encode(array()),
'urlparams_list_disallow' => json_encode(array('utc_action','test')),
'time_filter' => 'disallow',
'time_list' => json_encode(array('00_01','01_02','02_03','03_04','04_05','05_06'))
))
)
Array
(
[action] => update
[connected] => 1
[clicklock] => Array
(
[success] => 1
[tread] => TREAD_ID
)
)
$data = array(
'key' => 'YOUR_API_KEY',
'action' => 'delete',
'data' => json_encode(array(
'server' => json_encode($_SERVER),
'tread' => 'TREAD_ID'
))
)
Array
(
[action] => delete
[connected] => 1
[clicklock] => Array
(
[success] => 1
[tread] => TREAD_ID
)
)
$data = array(
'key' => 'YOUR_API_KEY',
'action' => 'getclicks',
'data' => json_encode(array(
'server' => json_encode($_SERVER),
'tread' => 'TREAD_ID',
'date' => '20-04-2022',
'page' => '1',
'page_size' => '20'
))
)
Array
(
[action] => getclicks
[connected] => 1
[clicklock] => Array
(
[success] => 1
[date] => 20-04-2022
[all_clicks] => 2
[filtered] => 2
[offer] => 0
[tread_id] => TREAD_ID
[current_page] => 1
[page_size] => 20
[pages_counts] => 1
[clicks] => Array
(
[0] => Array
(
[filtered] => 1
[filter_concrete] => User-Agent
[page_type] => safe page
[page_url] => yandex.ru
[SERVER_ADDR] => 45.234.12.56
[SERVER_NAME] => test.domain.com
[REMOTE_ADDR] => 44.55.66.77
[HTTP_REFERER] => -
[USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
[QUERY_STRING] => -
[CITY] => Minsk
[COUNTRY] => Belarus
[COUNTRY_CODE] => BY
[ISP] => Republican Unitary Telecommunication Enterprise Beltelecom
[time] => 11:44:04
[day] => 20-04-2022
[device_type] => desktop
)
[1] => Array
(
[filtered] => 1
[filter_concrete] => User-Agent
[page_type] => safe page
[page_url] => yandex.ru
[SERVER_ADDR] => 45.234.12.56
[SERVER_NAME] => test.domain.com
[REMOTE_ADDR] => 41.52.63.74
[HTTP_REFERER] => -
[USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
[QUERY_STRING] => -
[CITY] => Minsk
[COUNTRY] => Belarus
[COUNTRY_CODE] => BY
[ISP] => Republican Unitary Telecommunication Enterprise Beltelecom
[time] => 11:32:01
[day] => 20-04-2022
[device_type] => desktop
)
)
)
)
REMOTE_ADDR | Users IP address |
SERVER_ADDR | Server IP address |
SERVER_NAME | Domain name |
HTTP_USER_AGENT | User-Agent of user |
HTTP_REFERER | Referrer |