Fuel API
These APIs only work if CAN data is available from the vehicle.
Fuel History
curl https://apiplatform.intellicar.in/api/standard/getfuelhistory \
--header 'Content-Type: application/json' \
--data '{"token": "<token>", "vehicleno": "<vehicleno>", "inlitres": "<boolean>", "starttime": "<epoch>", "endtime": "<epoch>"}'Response:
{
"status": "SUCCESS|FAILURE",
"data": [
{
"time": "<epoch-utc>",
"value": "<fuel-percentage or fuel-litres>"
}
],
"err": "<err>",
"msg": "<msg>"
}Fuel Used
curl https://apiplatform.intellicar.in/api/standard/getfuelused \
--header 'Content-Type: application/json' \
--data '{"token": "<token>", "vehicleno": "<vehicleno>", "starttime": "<epoch>", "endtime": "<epoch>"}'Response:
Last Fuel Status
Response:
Last updated