Differences

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

Link to this comparison view

en:d-sdk:4_units:1_get_units_groups [2018/04/25 15:19]
info@geliossoft.ru
en:d-sdk:4_units:1_get_units_groups [2021/07/07 13:28]
Line 1: Line 1:
-====== Units groups ====== 
-The request is intended to receive the list of units groups. 
  
-=== Request example === 
-<code php>&​svc=get_units_groups&​params={ 
-    "​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 === 
-== List of groups == 
-<code php>[ 
-    { 
-        "​id":​ 28782, // group Id 
-        "​creator":​ 24237, // group creator 
-        "​name":​ "​Группа пользователя sdkTest",​ // group name 
-        "​icon":​ null, // group icon 
-        "​units":​ [  
-            66780, // unit Id 
-            ...  
-        ] 
-    }, 
-    ... 
-]</​code>​