Skip to content

Get device info

get a list of devices associated with the user, paginate, and support querying by terminal number,only support admin user call,general user referGet the basic of the user's vehicle

API information

Url: /basic_api/v1/device/get_list

Method: GET

Content-Type:x-www-form-urlencoded

Request parameter

fieldtyperequireddesc
curPageintegerYesCurrent page
pageNumintegerYesQuantity per page
userGuidintegerNoUser ID. Only when you log in as the super administrator, the user needs to query the information about the specified management user
deviceNostringNoDevice number
protocolTypeintegerYesProtocol type :1:JT2013,2:JT2019
isNotBoundboolNoNot yet bound

Response Data (type:object)

fieldtypedesc
totalintegertotal num
dataarray(object)Device list,jump to table 1

table 1:device info

fieldtypedesc
deviceNostringDevice number
protocolTypeintegerProtocol type 1:JT808-2013,2:JT808-2019
channelNumintegerChannel num
channelValidFlagintegerChannel valid flag,by bit,example:3:ch 1,2 is valid
guidintegerDevice id
adminGuid,omitemptyintegerAdmin ID
createTimestringCreate time
updateTimestringUpdate time

Example

Request example

url
http://localhost:8080/basic_api/v1/device/get_list?curPage=1&pageNum=10&userGuid=1&deviceNo=13000000005&protocolType=1&isNotBound=true
http://localhost:8080/basic_api/v1/device/get_list?curPage=1&pageNum=10&userGuid=1&deviceNo=13000000005&protocolType=1&isNotBound=true

Response example

json
{
	"hdr": {
		"code": 200,
		"message": "success"
	},
	"data": 
    {
        "total":1,
        "dataList":[{
            "devicNo": "13000000005",
            "protocolType": 1,
            "channelNum": 1,
            "channelValidFlag": 1,
            "guid": 1,
            "adminGuid": 1,
            "createTime": "2023-11-04 10:12:50",  
            "updateTime": "2023-11-04 10:12:50"
        }]
    }  
}
{
	"hdr": {
		"code": 200,
		"message": "success"
	},
	"data": 
    {
        "total":1,
        "dataList":[{
            "devicNo": "13000000005",
            "protocolType": 1,
            "channelNum": 1,
            "channelValidFlag": 1,
            "guid": 1,
            "adminGuid": 1,
            "createTime": "2023-11-04 10:12:50",  
            "updateTime": "2023-11-04 10:12:50"
        }]
    }  
}