Differences

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

Link to this comparison view

en:d-sdk:4_units:4_get_units_paging [2018/04/25 17:59]
info@geliossoft.ru
en:d-sdk:4_units:4_get_units_paging [2021/07/07 13:28]
Line 1: Line 1:
-====== Units list by pages ====== 
-The request is intended to receive paginated list of units. 
  
-=== Request example === 
-<code php>&​svc=get_units_paging&​params={ 
-    "​per_page":​ integer, 
-    "​page":​ integer 
-}</​code>​ 
- 
-=== Parameters === 
-^ Parameter ​  ^ Description ​  ^ 
-| per_page | Amount of units per page | 
-| page | Page number | 
- 
-=== Additional info === 
-Response will contain full information about units on specified page. 
- 
-=== Response === 
-== Units list == 
-<code php>[ 
-    { 
-        "​id":​ 66780, // unique unit id 
-        "​hw_id":​ "​12412421",​ // hardware id 
-        "​hw_type":​ "​32131241",​ // hardware type 
-        "​removed":​ 0, // deletion status (in recycle = 1, not in recycle = 0) 
-        "​is_free":​ 0, // payment status (chargeable = 0, free = 1) 
-        "​creator":​ 24237, // unit creator 
-        "​name":​ "​TestSDK",​ // unit name 
-        ... 
-    }, 
-    ... 
-]</​code>​