POST api/CarInfo/GetCarInfo

Achieve vehicle info

Request Information

Body Parameters

Achieve vehicle info interface

GetCarInfoModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

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:
{
  "DeviceId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<GetCarInfoModel 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>
  <DeviceId>1</DeviceId>
</GetCarInfoModel>

Response Information

Resource Description

State value is:
0. Indicates success
1100. says device doesn't exist

GetCarInfoResult
NameDescriptionTypeAdditional information
Item

CarInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Item": {
    "Sid": 1,
    "DeviceId": 2,
    "Imei": "sample string 3",
    "BrandId": 4,
    "BrandName": "sample string 5",
    "BrandEN_Name": "sample string 6",
    "Logo": "sample string 7",
    "SerId": 8,
    "SerName": "sample string 9",
    "SerEN_Name": "sample string 10",
    "ModelId": 11,
    "ModelName": "sample string 12",
    "ModelEN_Name": "sample string 13",
    "EngineNum": "sample string 14",
    "FrameNum": "sample string 15",
    "InitDistance": 16.0,
    "CarNo": "sample string 17",
    "TotalMileage": 18.0,
    "AvgFuel": 19.0,
    "AvgSpeed": 20.0,
    "Fortification": 21,
    "AccStatus": 22,
    "Status": 23,
    "DeviceName": "sample string 24",
    "SimCard": "sample string 25",
    "Avatar": "sample string 26"
  },
  "State": 1
}

application/xml, text/xml

Sample:
<GetCarInfoResult 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:AccStatus>22</d2p1:AccStatus>
    <d2p1:Avatar>sample string 26</d2p1:Avatar>
    <d2p1:AvgFuel>19</d2p1:AvgFuel>
    <d2p1:AvgSpeed>20</d2p1:AvgSpeed>
    <d2p1:BrandEN_Name>sample string 6</d2p1:BrandEN_Name>
    <d2p1:BrandId>4</d2p1:BrandId>
    <d2p1:BrandName>sample string 5</d2p1:BrandName>
    <d2p1:CarNo>sample string 17</d2p1:CarNo>
    <d2p1:DeviceId>2</d2p1:DeviceId>
    <d2p1:DeviceName>sample string 24</d2p1:DeviceName>
    <d2p1:EngineNum>sample string 14</d2p1:EngineNum>
    <d2p1:Fortification>21</d2p1:Fortification>
    <d2p1:FrameNum>sample string 15</d2p1:FrameNum>
    <d2p1:Imei>sample string 3</d2p1:Imei>
    <d2p1:InitDistance>16</d2p1:InitDistance>
    <d2p1:Logo>sample string 7</d2p1:Logo>
    <d2p1:ModelEN_Name>sample string 13</d2p1:ModelEN_Name>
    <d2p1:ModelId>11</d2p1:ModelId>
    <d2p1:ModelName>sample string 12</d2p1:ModelName>
    <d2p1:SerEN_Name>sample string 10</d2p1:SerEN_Name>
    <d2p1:SerId>8</d2p1:SerId>
    <d2p1:SerName>sample string 9</d2p1:SerName>
    <d2p1:Sid>1</d2p1:Sid>
    <d2p1:SimCard>sample string 25</d2p1:SimCard>
    <d2p1:Status>23</d2p1:Status>
    <d2p1:TotalMileage>18</d2p1:TotalMileage>
  </Item>
</GetCarInfoResult>