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 09:58]
info@geliossoft.ru created
en:d-sdk:4_units:4_get_units_paging [2018/04/25 17:59]
info@geliossoft.ru
Line 1: Line 1:
-FIXME **This page is not fully translated, yetPlease help completing the translation.**\\ //(remove this paragraph once the translation is finished)//+====== Units list by pages ====== 
 +The request ​is intended to receive paginated list of units.
  
-====== Получение списка объектов постранично ====== +=== Request example ​===
-Запрос предназначен для постраничного получения списка объектов. +
- +
-=== Пример запроса ​===+
 <code php>&​svc=get_units_paging&​params={ <code php>&​svc=get_units_paging&​params={
     "​per_page":​ integer,     "​per_page":​ integer,
Line 10: Line 8:
 }</​code>​ }</​code>​
  
-=== Параметры ​=== +=== Parameters ​=== 
-Параметр ​  ^ Значение ​  ^ +Parameter ​  ^ Description ​  ^ 
-| per_page | Количество записей на странице ​+| per_page | Amount of units per page 
-| page | Номер страницы ​|+| page | Page number ​|
  
-=== Дополнительно ​=== +=== Additional info === 
-Запрос возвращает всю информацию об объекте на указанной странице.+Response will contain full information about units on specified page.
  
-=== Ответ сервера ​=== +=== Response ​=== 
-== Результат запроса ​==+== Units list ==
 <code php>[ <code php>[
     {     {
-        "​id":​ 66780, // Уникальный ID объекта +        "​id":​ 66780, // unique unit id 
-        "​hw_id":​ "​12412421",​ // ID оборудования объекта +        "​hw_id":​ "​12412421",​ // hardware id 
-        "​hw_type":​ "​32131241",​ // Тип оборудования объекта +        "​hw_type":​ "​32131241",​ // hardware type 
-        "​removed":​ 0, // Статус объекта ​(в корзине ​= 1, не в корзине ​= 0) +        "​removed":​ 0, // deletion status ​(in recycle ​= 1, not in recycle ​= 0) 
-        "​is_free":​ 0, // Статус объекта ​(платный ​= 0, бесплатный ​= 1) +        "​is_free":​ 0, // payment status ​(chargeable ​= 0, free = 1) 
-        "​creator":​ 24237, // Создатель объекта +        "​creator":​ 24237, // unit creator 
-        "​name":​ "​TestSDK",​ // Название объекта+        "​name":​ "​TestSDK",​ // unit name
         ...         ...
     },     },
     ...     ...
 ]</​code>​ ]</​code>​