Документация SMARTCALLBACK API
Метод getTagsList
Получение списка доступных общих и пользовательских тегов.
Входные данные
client_id (int) || token (string(20)) [One is REQUIRED] - Параметры идентификации клиента, для которого обращается API
Результирующие данные
JSON:
{"result":1,"response":{"tags_count":6,"tags":[{"id":"19","title":"\u041d\u043e\u0432\u0430\u044f","color":null,"status":"1"},{"id":"20","title":"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u0430\u044f","color":null,"status":"1"},{"id":"21","title":"\u041d\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0430","color":null,"status":"1"},{"id":"22","title":"\u0426\u0435\u043b\u0435\u0432\u0430\u044f","color":null,"status":"1"},{"id":"23","title":"\u041f\u0440\u043e\u0434\u0430\u0436\u0430","color":null,"status":"1"},{"id":"53","title":"\u0422\u0435\u0441\u0442","color":"#ffffff","status":"1"}]}}
{"result":1,"response":{"tags_count":6,"tags":[{"id":"19","title":"\u041d\u043e\u0432\u0430\u044f","color":null,"status":"1"},{"id":"20","title":"\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u0430\u044f","color":null,"status":"1"},{"id":"21","title":"\u041d\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0430","color":null,"status":"1"},{"id":"22","title":"\u0426\u0435\u043b\u0435\u0432\u0430\u044f","color":null,"status":"1"},{"id":"23","title":"\u041f\u0440\u043e\u0434\u0430\u0436\u0430","color":null,"status":"1"},{"id":"53","title":"\u0422\u0435\u0441\u0442","color":"#ffffff","status":"1"}]}}
Array ( [result] => 1 [response] => Array ( [tags_count] => 6 [tags] => Array ( [0] => Array ( [id] => 19 [title] => Новая [color] => [status] => 1 ) [1] => Array ( [id] => 20 [title] => Первичная [color] => [status] => 1 ) [2] => Array ( [id] => 21 [title] => Нет ответа [color] => [status] => 1 ) [3] => Array ( [id] => 22 [title] => Целевая [color] => [status] => 1 ) [4] => Array ( [id] => 23 [title] => Продажа [color] => [status] => 1 ) [5] => Array ( [id] => 53 [title] => Тест [color] => #ffffff [status] => 1 ) ) ) )