Motia WS/API - Get Vehicle Asset List

Craig Marsden
Craig Marsden
  • Updated

This API returns a list of vehicle registrations accessible by the API user account used to retrieve the authentication token. This is useful for passing in to subsequent API calls that require vehicle registrations. 

 

Service URL

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

Service method and input parameters

GetAssetReg(string token)

 

Token

By Using below API get the token

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

 

Service Response

- ErrorMessage - empty for successful call

- Assets – list of data

 

Sample Response – Expired or Invalid Token

Request

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

Response

{

    "AssetsRegistration": null,

    "ErrorMessage": "Token was expired."

}

 

 

Sample Response – Invalid Credentials

Request

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

Response

{

"AssetsRegistration ": null,

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

}

 

 

Sample Request – Too Many Requests Per Minute

Request

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

 

Response

{

"AssetsRegistration ": null,

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

10 second period."

}

 

Sample Request – Correct Request

 

Request

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

Response

{

    "AssetsRegistration": "11D57680,11D59070”–

    "ErrorMessage": null

}

Comments

0 comments

Article is closed for comments.