Differences
This shows you the differences between two versions of the page.
en:d-sdk:4_units:19_search_units [2018/04/25 13:12] info@geliossoft.ru created |
en:d-sdk:4_units:19_search_units [2018/04/25 21:32] 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 Search ====== |
+ | The request is intended to search for unit. | ||
- | ====== Поиск объектов ====== | + | === Request Example === |
- | Запрос предназначен для поиска объектов. | + | |
- | + | ||
- | === Пример запроса === | + | |
<code php>&svc=search_units¶ms={ | <code php>&svc=search_units¶ms={ | ||
"name":string, | "name":string, | ||
Line 11: | Line 9: | ||
}</code> | }</code> | ||
- | === Параметры === | + | === Parameters === |
- | ^ Параметр ^ Значение ^ | + | ^ Parameter ^ Description ^ |
- | | name | Название объекта | | + | | name | Unit name | |
- | | hw_type | Тип оборудования, установленного на объекте | | + | | hw_type | Hardware Type | |
- | | imei | Уникальный идентификатор оборудования, установленного на объекте | | + | | imei | Unique Hardware IMEI | |
- | === Дополнительно === | + | === Additional Information === |
- | Параметр "name" может частично совпадать, остальные точное совпадение. | + | "name" may partially match, other - exact matching. |
- | === Ответ сервера === | + | === 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 (paid = 0, free = 1) |
- | "creator": 24237, // Создатель объекта | + | "creator": 24237, // Unit creator |
- | "name": "TestSDK", // Название объекта | + | "name": "TestSDK", // Unit name |
... | ... | ||
}, | }, | ||
... | ... | ||
]</code> | ]</code> |