Obtain Device List

Feature Description

Obtain device list based on distribution network token

Interface Address

GET /v1.0/devices/tokens/{token}

Header Parameter

Parameter name Type Parameter position Description Required
client_id String header client_id Yes
access_token String header Access token for obtaining token-related interface Yes
sign String header Signature calculated by the “after get token” signature algorithm Yes
sign_method String header Digestion algorithm of signature, HMAC-SHA256 Yes
t Long header 13-digit standard time stamp Yes

Request Parameters

Parameter name Type Parameter position Description Required
token String URI Device distribution networktoken Yes

Request Example

GET /v1.0/devices/tokens/AY23sdsrsdgfdgdfg

Return Messages

Parameter name Type Description
code Integer Response code(see error code section for details)
success Boolean Success or failed: (true: success, false: failed)
msg String Request failed message. Empty when successful
result Object Return results

result Description

Parameter name Type Description
successDevices Array Distribution network successful device list
errorDevices Array Distribution network failed device list

successDevices Description

Parameter name Type Description
id String Device id
productId String Product id
name String Device name
isOnline Boolean Online status
lon String Longitude
lat String Latitude
ip String ip

errorDevices Description

Parameter name Type Description
id String Device id
errorCode String Failure error code
errorMsg String Failure error description
name String Device name

400 Call

Consult

400-881-8611