Differences
This shows you the differences between two versions of the page.
en:d-sdk:4_units:19_search_units [2018/04/25 21:32] support@geliossoft.ru |
en:d-sdk:4_units:19_search_units [2021/07/07 13:28] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Unit Search ====== | ||
- | The request is intended to search for unit. | ||
- | === Request Example === | ||
- | <code php>&svc=search_units¶ms={ | ||
- | "name":string, | ||
- | "hw_type":string, | ||
- | "imei":string | ||
- | }</code> | ||
- | |||
- | === Parameters === | ||
- | ^ Parameter ^ Description ^ | ||
- | | name | Unit name | | ||
- | | hw_type | Hardware Type | | ||
- | | imei | Unique Hardware IMEI | | ||
- | |||
- | === Additional Information === | ||
- | "name" may partially match, other - exact matching. | ||
- | |||
- | === Server Response === | ||
- | == Result: == | ||
- | <code php>[ | ||
- | { | ||
- | "id": 66780, // Unique Unit ID | ||
- | "hw_id": "12412421", // Hardware ID | ||
- | "hw_type": "32131241", // Hardware Type | ||
- | "removed": 0, // Unit status (in recycle = 1, out of recycle = 0) | ||
- | "is_free": 0, // Unit status (paid = 0, free = 1) | ||
- | "creator": 24237, // Unit creator | ||
- | "name": "TestSDK", // Unit name | ||
- | ... | ||
- | }, | ||
- | ... | ||
- | ]</code> |