Документация SMARTCALLBACK API


Метод getDomains

Получает весь список доменов клиента.

Входные данные

client_id (int) || token (string(20)) [One is REQUIRED] - Параметры идентификации клиента, для которого обращается API

Результирующие данные

JSON:
{"result":1,"response":{"num_domains":2,"domains":[{"domen_id":"1","domen":"site.ru","isSCBon":"1","regim":"3","isSMSon":"0","gaCounter":"UA-99999-1","gaIsOn":"1","yaCounter":"26101999","ajax_mode":"0","with_autocalls":"1","date_create":"1410157041"},{"domen_id":"2","domen":"site2.ru","isSCBon":"1","regim":"1","isSMSon":"0","gaCounter":"","gaIsOn":"0","yaCounter":"","ajax_mode":"0","with_autocalls":"0","date_create":"1430077452"}]}}

Array
(
    [result] => 1
    [response] => Array
        (
            [num_domains] => 2
            [domains] => Array
                (
                    [0] => Array
                        (
                            [domen_id] => 1
                            [domen] => site.ru
                            [isSCBon] => 1
                            [regim] => 3
                            [isSMSon] => 0
                            [gaCounter] => UA-99999-1
                            [gaIsOn] => 1
                            [yaCounter] => 26101999
                            [ajax_mode] => 0
                            [with_autocalls] => 1
                            [date_create] => 1410157041
                        )

                    [1] => Array
                        (
                            [domen_id] => 2
                            [domen] => site2.ru
                            [isSCBon] => 1
                            [regim] => 1
                            [isSMSon] => 0
                            [gaCounter] => 
                            [gaIsOn] => 0
                            [yaCounter] => 
                            [ajax_mode] => 0
                            [with_autocalls] => 0
                            [date_create] => 1430077452
                        )

                )

        )

)