Differences
This shows you the differences between two versions of the page.
en:d-sdk:4_units:1_get_units_groups [2018/04/25 15:18] info@geliossoft.ru |
en:d-sdk:4_units:1_get_units_groups [2021/07/07 13:28] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | ||
- | ====== Units groups ====== | ||
- | The request is intended to receive the list of units groups. | ||
- | Запрос предназначен для получения доступных групп объектов. | ||
- | |||
- | === Request example === | ||
- | <code php>&svc=get_units_groups¶ms={ | ||
- | "id_user": integer | ||
- | }</code> | ||
- | |||
- | === Parameters === | ||
- | ^ Parameter ^ Description ^ | ||
- | | id_user | Unique Id of user | | ||
- | |||
- | === Additional info === | ||
- | svc = get_units_groups - will response with full list of available groups. | ||
- | Optional parameter id_user - will response with full list of groups available for specified user. | ||
- | |||
- | === Response === | ||
- | == Результат запроса == | ||
- | <code php>[ | ||
- | { | ||
- | "id": 28782, // ID группы | ||
- | "creator": 24237, // Создатель группы | ||
- | "name": "Группа пользователя sdkTest", // Название группы | ||
- | "icon": null, // Иконка группы | ||
- | "units": [ | ||
- | 66780, // ID объекта | ||
- | ... | ||
- | ] | ||
- | }, | ||
- | ... | ||
- | ]</code> |