Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:d-sdk:4_units:2_get_units_groups_by_ids [2018/04/25 09:57]
info@geliossoft.ru created
en:d-sdk:4_units:2_get_units_groups_by_ids [2018/04/25 15:35]
info@geliossoft.ru
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 by id ====== 
 +The request ​is intended to receive ​the list of groups by id's.
  
-====== Получение групп объектов по id ====== +=== Request example ​===
-Запрос предназначен для получения групп объектов по id. +
- +
-=== Пример запроса ​===+
 <code php>&​svc=get_units_groups_by_ids&​params={ <code php>&​svc=get_units_groups_by_ids&​params={
     "​id_user":​ integer,     "​id_user":​ integer,
Line 10: Line 8:
 }</​code>​ }</​code>​
  
-=== Параметры ​=== +=== Parameters ​=== 
-Параметр ​  ^ Значение ​  ^ +Parameter ​  ^ Description ​  ^ 
-| id_user | Уникальный идентификатор пользователя ​+| id_user | Unique user id 
-| units_groups_ids | Список уникальных идентификаторов групп объектов ​|+| units_groups_ids | List of unique units groups ids |
  
-=== Дополнительно ​=== +=== Additional info === 
-при указании необязательного параметра ​id_user, ​вернутся группы объектов,​ доступные этому пользователю.+If optional parameter ​id_user ​is setresponse will contain all available groups.
  
-=== Ответ сервера ​=== +=== Response ​=== 
-== Результат запроса ​==+== List of groups ​==
 <code php>[ <code php>[
     {     {
-        "​id":​ 29202, // ID группы +        "​id":​ 29202, // group id 
-        "​creator":​ 24237, // Создатель группы +        "​creator":​ 24237, // group creator 
-        "​name":​ "​Тест",​ // Название группы +        "​name":​ "​Тест",​ // group name 
-        "​icon":​ "​darkblue/​car_icon.png",​ // Иконка группы+        "​icon":​ "​darkblue/​car_icon.png",​ // group icon
         "​units":​ [         "​units":​ [
-            28738, // ID объекта+            28738, // unit id
             66780,             66780,
             ...             ...