This is an old revision of the document!


FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

Получение пользователей

Запрос предназначен для получения списка пользователей доступных на учетной записи.

Пример запроса

&svc=get_users&params={
    filtr_cf:[{
        "name":string,
        "value":string
    }],
    "id_group":integer
}

Параметры

Параметр Значение
filtr_cf JSON-объект, который имеет ключи name и value, для фильтрации объектов по custom-fields
name Имя custom-field
value Значение custom-field
id_group Уникальный идентификатор группы объектов

Дополнительно

svc = get_users вернёт всех доступных пользователей включая себя filtr_cf - Фильтр по custom fields

Ответ сервера

Список пользователей
[
    {
        "id":24237,
        "creator":1,
        "login":"sdkTest",
        "is_admin":1,
        "address_base":"Google",
        "time_zone":10800,
        "mail":"",
        "phone":"",
        "account":"0",
        "cost_unit":null,
        "is_block":0,
        "cost_day":null,
        "cost_mode":"units",
        "days":null,
        "winter_time":0,
        "legal_name":"",
        "location":"",
        "lat_lon":"",
        "currency":"",
        "date_create":1515770894,
        "date_block":null,
        "last_login":1516009943,
        "auth_key":"4mmbqP3RzxSQnVCIZjqiC3U9f64cfEfz",
        "services":[],
        "photo":{"big":""},
        "cf":[{"name":"sender_mail","value":""}]
    },{
        "id":24279,
        "creator":24237,
        "login":"newtestUser",
        "is_admin":0,
        "address_base":"Google",
        "time_zone":10800,
        "mail":"",
        "phone":"",
        "account":"100",
        "cost_unit":null,
        "is_block":0,
        "cost_day":null,
        "cost_mode":"",
        "days":0,
        "winter_time":0,
        "legal_name":"",
        "location":"",
        "lat_lon":"",
        "currency":"",
        "date_create":1516010338,
        "date_block":null,
        "last_login":null,
        "auth_key":null,
        "services":[],
        "photo":{"big":""},
        "cf":[]
    }
]