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:1_get_units_groups [2018/04/25 09:48]
info@geliossoft.ru created
en:d-sdk:4_units:1_get_units_groups [2018/04/25 15:19]
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 ====== 
 +The request ​is intended to receive ​the list of units groups.
  
-====== Получение групп объектов ====== +=== Request example ​===
-Запрос предназначен для получения доступных групп объектов. +
- +
-=== Пример запроса ​===+
 <code php>&​svc=get_units_groups&​params={ <code php>&​svc=get_units_groups&​params={
     "​id_user":​ integer     "​id_user":​ integer
 }</​code>​ }</​code>​
  
-=== Параметры ​=== +=== Parameters ​=== 
-Параметр ​  ^ Значение ​  ^ +Parameter ​  ^ Description ​  ^ 
-| id_user | Уникальный идентификатор пользователя ​|+| id_user | Unique Id of user |
  
-=== Дополнительно ​=== +=== Additional info === 
-svc = get_units_groups ​вернёт все доступные группы+svc = get_units_groups ​- will response with full list of available groups
-необязательный параметр ​id_user ​вернёт группы объектов доступные этому пользователю.+Optional parameter ​id_user ​- will response with full list of groups available for specified user
  
-=== Ответ сервера ​=== +=== Response ​=== 
-== Результат запроса ​==+== List of groups ​==
 <code php>[ <code php>[
     {     {
-        "​id":​ 28782, // ID группы +        "​id":​ 28782, // group Id 
-        "​creator":​ 24237, // Создатель группы +        "​creator":​ 24237, // group creator 
-        "​name":​ "​Группа пользователя sdkTest",​ // Название группы +        "​name":​ "​Группа пользователя sdkTest",​ // group name 
-        "​icon":​ null, // Иконка группы+        "​icon":​ null, // group icon
         "​units":​ [          "​units":​ [ 
-            66780, // ID объекта+            66780, // unit Id
             ...              ... 
         ]         ]