POST api/Obd/GetObdFailureByImei

Obtain the results of the medical examination

Request Information

Body Parameters

ObdStatusModel
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:
<ObdStatusModel 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>
</ObdStatusModel>

Response Information

Resource Description

Statestatus code
0. Indicates success
1100. device does not exist
3000. no obd data

ObdFailureResult
NameDescriptionTypeAdditional information
FaultCodeDetails

ObdFailure

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "FaultCodeDetails": {
    "Id": 1,
    "Imei": "sample string 2",
    "Life": 1,
    "Idling": 1,
    "Cooling": 1,
    "Discharge": 1,
    "Valve": 1,
    "Circuit": 1,
    "Engine": 1,
    "Score": 1,
    "CreateTime": "2018-10-16T17:50:35.7691848+08:00"
  },
  "State": 1
}

application/xml, text/xml

Sample:
<ObdFailureResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <FaultCodeDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.SoftDbAccess.Models">
    <d2p1:Circuit>1</d2p1:Circuit>
    <d2p1:Cooling>1</d2p1:Cooling>
    <d2p1:CreateTime>2018-10-16T17:50:35.7691848+08:00</d2p1:CreateTime>
    <d2p1:Discharge>1</d2p1:Discharge>
    <d2p1:Engine>1</d2p1:Engine>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Idling>1</d2p1:Idling>
    <d2p1:Imei>sample string 2</d2p1:Imei>
    <d2p1:Life>1</d2p1:Life>
    <d2p1:Score>1</d2p1:Score>
    <d2p1:Valve>1</d2p1:Valve>
  </FaultCodeDetails>
</ObdFailureResult>