User wise Latest Data
This API is meant to get the vehicle’s data of particular user.
GEThttps://yourdomain.com/webservice?token=getObjectData&user=XXXX&pass=YYYY
Request Parameters
Parameter | Type | Value | Description |
---|---|---|---|
user | String | It is username and it is Mandatory | |
pass | String | It is password and it is Mandatory |
Description
Method Name
getObjectData
Request
Acceptance Criteria
License is not expired
API is specific project VTS.
Response
Key | Data Type | Mandatory | Description / Logic / Remark |
Status | String | Yes | INACTIVE,IDLE,STOP,RUNNING Status can be one of this |
Datetime | dd-MM-yyyy HH:mm:ss | Yes | Live data time of vehicle |
Vehicle_No | String | Yes | Vehicle number |
Vehicletype | String | Yes | Vehicle type |
Power | String | Yes | on/off |
GPS | String | Yes | on/off |
CurrentLocation | String | Yes | Geo location |
POI | String | Yes | Point of interest or address data |
lattitude | String | Yes | Vehicle current lat long |
longitude | String | Yes | Vehicle current lat long |
KILOMETER | String | Yes | kilometer |
odometer | String | Yes | Odometer value |
Error Code | Status |
0 | Fail |
1 | Success |
Sample Response
SUCCESS{
"root": {
"detaildata": [
{
"Status": "INACTIVE",
"Datetime": "04-12-2019 11:05:00",
"Vehicle_No": "fjfgj",
"Vehicletype": "Car",
"Power": "--",
"GPS": "on",
"CurrentLocation": "XXXXXX",
"POI": "--",
"lattitude": "27.8291",
"longitude": "80.2794",
"KILOMETER": "0.0",
"odometer": "0.0"
}
]
}
}
FAIL
{
"root": {
"detaildata": [
{
"Error": "Incorrect username / password"
}
]
}
}
FAIL
{
"root": {
"detaildata": [
{
"Status": "No Record Found"
}
]
}
}
FAIL
{
"root": {
"detaildata": [
{
"Error": "License Expired."
}
]
}
}
FAIL
{
"root": {
"detaildata": [
{
"Error": "User Inactive"
}
]
}
}
Response codes
Code | Description |
---|
Error codes
Code | Name | Description |
---|