Motia WS/API - Last Message (Vehicle List)

Craig Marsden
Craig Marsden
  • Updated

The Last Message web service allows you to integrate your own software/LOB application with your Motia Telematics devices. This web service returns the last message reported by all of the devices accessible by your web service account, this will be the same time stamp that is shown on the vehicle list on the Motia Telematics portal login.

 

Service URL

https://ws.mycubo.online/IntegrationService.svc

Service method and input parameters

GetAssetList(string token)

 

- Token -By Using below api get the token (Instructions Here)

(https://ws.mycubo.online/IntegrationService.svc/AuthorizeUser?username=INTG-username&password=INTG-password)

 

Service response

- ErrorMessage - empty for successful call

- Assets – list of data

 

Sample Response – Expired or Invalid Token

Request

https://ws.mycubo.online/IntegrationService.svc/GetAssetList?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS

Response

{

    "ASSETS": null,

    "ErrorMessage": "Token was expired."

}

 

Sample Response – Invalid Credentials

Request

https://ws.mycubo.online/IntegrationService.svc/GetAssetList?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS

Response

{

"ASSETS": null,

"ErrorMessage": "Login failed. Please enter valid username and password."

}

 

Sample Request – Too Many Requests Per Minute

Request

https://ws.mycubo.online/IntegrationService.svc/GetAssetList?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS

Response

{

"ASSETS": null,

"ErrorMessage": "Last request was 3 seconds ago. Request is allowed once per

60 second period."

}

 

Sample Request – Correct Request

Request

https://ws.mycubo.online/IntegrationService.svc/GetAssetList?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS

Response

{

  "Assets": [

    {

      "Active": true,

      "AssetType": "Vehicle",

      "Dealer": "Cubo",

      "DigiCentralTachoMessageUpdated": "/Date(1667545362000+0000)/",

      "DigiDailyDrive": "over 0 min",

      "DigiDurationOfNextBreakRest": "04:30",

      "DigiExtendedDriveUsed": "00:02",

      "DigiMaximumDailyDrive": "over 0 min",

      "DigiReducedRestUsed": "00:03",

      "DigiRemainingBreakRest": "00:45",

      "DigiRemainingDailyDrive": "04:30",

      "DigiRemainingDrive": "04:30",

      "DigiRemainingWeeklyDrive": "56:00",

      "DigiTachoSysCardNumber": "10400000318210",

      "DigiTimeLeftUntilNextDailyRest": "00:00",

      "DigiTwoWeekDrive": "54:04",

      "DigiWorkState": 0,

      "FriendlyName": "SCANIA 230",

      "FuelLevel": 100.00,

      "Heading": 299,

      "IMEI": 3555440691243285,

      "Icon": "http://hub.nibc.co.uk/markers/LorryGreen.png",

      "LastReceived": "2022-11-04T07:04:18",

      "LastUpdate": "2022-11-04T07:04:16",

      "Latitude": 53.5054586,

      "Location": "<b id=\"263\">Depot Lusk</b>",

      "Longitude": -6.1974845,

      "Odometer": 638863.55000000,

      "Registration": "13D55660",

      "Speed": 0.00,

      "Status": "I",

      "TachoDriverID": "1040000031821000",

      "TachoDriverName": null,

      "TachoWorkState": 0,

      "TempTag1Name": null,

      "TempTag1Value": 0.00,

      "TempTag2Name": null,

      "TempTag2Value": 0.00,

      "TempTag3Name": null,

      "TempTag3Value": 0.00,

      "TempTag4Name": null,

      "TempTag4Value": null,

      "WorkingHours": 0.000

    }

  ],

  "ErrorMessage": null

}

Comments

0 comments

Article is closed for comments.