Differences
This shows you the differences between two versions of the page.
en:d-sdk:2_users:1_get_users [2018/04/23 16:34] info@geliossoft.ru |
en:d-sdk:2_users:1_get_users [2021/07/07 13:28] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Users list ====== | ||
- | Request provides possibility to receive the list of users available for account. | ||
- | === Request example === | ||
- | <code php>&svc=get_users¶ms={ | ||
- | filtr_cf:[{ | ||
- | "name":string, | ||
- | "value":string | ||
- | }], | ||
- | "id_group":integer | ||
- | }</code> | ||
- | |||
- | === Parameters === | ||
- | ^ Parameter ^ Description ^ | ||
- | | filtr_cf | JSON-object, which has keys "name" and "value", to filter units by "custom-fields"| | ||
- | | name | Name of "custom-field" | | ||
- | | value | Value of "custom-field" | | ||
- | | id_group | Unique Id of group of units | | ||
- | |||
- | === Additional information === | ||
- | svc = get_users will response with full list of users, including your own | ||
- | filtr_cf - filter by "custom fields" value | ||
- | |||
- | === Server's response === | ||
- | == Users list == | ||
- | <code php>[ | ||
- | { | ||
- | "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":[] | ||
- | } | ||
- | ]</code> |