POST api/Device/CheckDevice
Check if this device is already register or not
Request Information
Body Parameters
CheckDeviceModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SerialNumber |
设备Imei |
string |
None. |
| UserId |
用户id |
integer |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"SerialNumber": "sample string 1",
"UserId": 2,
"Token": "sample string 3",
"Language": "sample string 4",
"AppId": "sample string 5"
}
application/xml, text/xml
Sample:
<CheckDeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 5</AppId> <Language>sample string 4</Language> <Token>sample string 3</Token> <SerialNumber>sample string 1</SerialNumber> <UserId>2</UserId> </CheckDeviceModel>
Response Information
Resource Description
0:mean
State状态码说明:
0. 表示返回成功
1000. 用户不存在
1100. 设备不存在
1105. 设备属于自己
1106. 你已获得该设备访问权限
1107. 该设备已有主控号,你可以申请查看该设备
1501. 已提交了相同的请求
3900. 需要验证码验证
4004. 手表还未初始化[专用状态码]
4005. SIM卡无效[专用状态码]
4006. SIM卡号码已知[专用状态码]
3901. 需要输入验证码[专用状态码]
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message |
消息 |
string |
None. |
| DeviceId |
设备Id |
integer |
None. |
| Model |
型号 |
integer |
None. |
| NeedPhone |
是否需要用户号码 |
boolean |
None. |
| IsActivation |
是否实名认证[专用] |
boolean |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"DeviceId": 2,
"Model": 3,
"NeedPhone": true,
"IsActivation": true,
"State": 6
}
application/xml, text/xml
Sample:
<CheckDeviceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>6</State> <DeviceId>2</DeviceId> <IsActivation>true</IsActivation> <Message>sample string 1</Message> <Model>3</Model> <NeedPhone>true</NeedPhone> </CheckDeviceResult>