POST api/Device/GetDeviceByIMEI

According to IMEI achieve device info [vehicle]

Request Information

Body Parameters

GetDeviceInfoModelIMEI
NameDescriptionTypeAdditional information
IMEI

device imei

string

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IMEI": "sample string 1",
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<GetDeviceInfoModelIMEI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <IMEI>sample string 1</IMEI>
</GetDeviceInfoModelIMEI>

Response Information

Resource Description

Statestatus codeillustrate:
0. Indicates success
1100. device does not exist

GetDeviceInfoResult
NameDescriptionTypeAdditional information
Item

Device information

DeviceViewModel

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Item": {
    "DeviceId": 1,
    "Name": "sample string 2",
    "Sn": "sample string 3",
    "ModelName": "sample string 4",
    "SpeedLimit": 5,
    "GroupId": 6,
    "PhoneNum": "sample string 7",
    "CarNum": "sample string 8",
    "CarUsername": "sample string 9",
    "CellPhone": "sample string 10",
    "ExpireTime": "sample string 11",
    "CreateTime": "sample string 12",
    "Address": "sample string 13",
    "Avatar": "sample string 14",
    "DataContext": "sample string 15",
    "Model": 16,
    "Icon": 17,
    "UserId": 18
  },
  "State": 1
}

application/xml, text/xml

Sample:
<GetDeviceInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:Address>sample string 13</d2p1:Address>
    <d2p1:Avatar>sample string 14</d2p1:Avatar>
    <d2p1:CarNum>sample string 8</d2p1:CarNum>
    <d2p1:CarUsername>sample string 9</d2p1:CarUsername>
    <d2p1:CellPhone>sample string 10</d2p1:CellPhone>
    <d2p1:CreateTime>sample string 12</d2p1:CreateTime>
    <d2p1:DataContext>sample string 15</d2p1:DataContext>
    <d2p1:DeviceId>1</d2p1:DeviceId>
    <d2p1:ExpireTime>sample string 11</d2p1:ExpireTime>
    <d2p1:GroupId>6</d2p1:GroupId>
    <d2p1:Icon>17</d2p1:Icon>
    <d2p1:Model>16</d2p1:Model>
    <d2p1:ModelName>sample string 4</d2p1:ModelName>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:PhoneNum>sample string 7</d2p1:PhoneNum>
    <d2p1:Sn>sample string 3</d2p1:Sn>
    <d2p1:SpeedLimit>5</d2p1:SpeedLimit>
    <d2p1:UserId>18</d2p1:UserId>
  </Item>
</GetDeviceInfoResult>