Differences
This shows you the differences between two versions of the page.
en:d-sdk:4_units:2_get_units_groups_by_ids [2018/04/25 15:35] info@geliossoft.ru |
en:d-sdk:4_units:2_get_units_groups_by_ids [2021/07/07 13:28] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Units groups by id ====== | ||
- | The request is intended to receive the list of groups by id's. | ||
- | === Request example === | ||
- | <code php>&svc=get_units_groups_by_ids¶ms={ | ||
- | "id_user": integer, | ||
- | "units_groups_ids": [integer, integer, ...] | ||
- | }</code> | ||
- | |||
- | === Parameters === | ||
- | ^ Parameter ^ Description ^ | ||
- | | id_user | Unique user id | | ||
- | | units_groups_ids | List of unique units groups ids | | ||
- | |||
- | === Additional info === | ||
- | If optional parameter id_user is set, response will contain all available groups. | ||
- | |||
- | === Response === | ||
- | == List of groups == | ||
- | <code php>[ | ||
- | { | ||
- | "id": 29202, // group id | ||
- | "creator": 24237, // group creator | ||
- | "name": "Тест", // group name | ||
- | "icon": "darkblue/car_icon.png", // group icon | ||
- | "units": [ | ||
- | 28738, // unit id | ||
- | 66780, | ||
- | ... | ||
- | ] | ||
- | }, | ||
- | ... | ||
- | ]</code> |