OneNET IoT Platform Platform Introduction Introduction Manual Guidline for Device Development Guideline for Application Development
API
API Usage API List SDK MQTT LwM2M EDP Modbus TCP
HTTP Push

Inquire Device Information Based on Imei

Request Method: GET

URL: http://iot.zong.com.pk:8000/devices/getbyimei

http Header

Parameter Name Format Required Description
api-key string yes must be masterkey or apikey with access authority of the device

url Parameter

Parameter Name Format Required Description
imei string yes identity code of nbiot device

Return Parameter

Parameter Name Format Description
errno int code for call error , 0 indicates call is successful
error string error description, "succ" indicates call is successful
data json device related information returned after successful interface call, see data description table
data Description Table
Parameter Name Format Description
id string device ID
online bool device online status
title string device name
desc string device description
create_time string device creation time, Beijing time
private bool device privacy

Example of Request

GET http://iot.zong.com.pk:8000/devices/getbyimei?imei=865***03 HTTP/1.1
api-key: WhI*************v1c=
Host: iot.zong.com.pk:8000

Example of Return

{
    "errno": 0,
    "data": {
        "id": "35282992",
        "online": false,
        "title": "test_device",
        "desc": "test_desc",
        "create_time": "2018-07-04 17:43:11",
        "private":true,
    },
    "error": "succ"
}

results matching ""

    No results matching ""