Differences

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

Link to this comparison view

Next revision Both sides next revision
en:d-sdk:4_units:6_get_unit_info [2018/04/25 09:58]
info@geliossoft.ru created
en:d-sdk:4_units:6_get_unit_info [2018/04/25 20:02]
support@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)//+====== Unit Info ====== 
 +The request ​is intended to obtain information about the unit.
  
-====== Получение информации об объекте ====== +=== Request Example ​===
-Запрос предназначен для получения информации об объекте. +
- +
-=== Пример запроса ​===+
 <code php>&​svc=get_unit_info&​params={ <code php>&​svc=get_unit_info&​params={
     "​id_unit":​ integer     "​id_unit":​ integer
 }</​code>​ }</​code>​
  
-=== Параметры ​=== +=== Parameters ​=== 
-Параметр ​  ^ Значение ​  ^ +Parameter ​  ^ Description ​  ^ 
-| id_unit | Уникальный идентификатор объекта ​|+| id_unit | Unique Unit ID |
  
-=== Ответ сервера ​=== +=== Server Response ​=== 
-== Результат запроса ​==+== Result: ​==
 <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, // Unit status ​(in recycle ​= 1, out of recycle ​= 0) 
-    "​is_free":​ 0, // Статус объекта ​(платный ​= 0, бесплатный ​= 1) +    "​is_free":​ 0, // Unit status ​(pain = 0, free = 1) 
-    "​creator":​ 24237, // Создатель объекта +    "​creator":​ 24237, // Unit creator 
-    "​name":​ "​TestSDK",​ // Название объекта+    "​name":​ "​TestSDK",​ // Unit name
     ...     ...
 }</​code>​ }</​code>​