Motia WS/API - Get POI's

Craig Marsden
Craig Marsden
  • Updated

This API is used to return a list of POI's (points of interest) setup on the Motia Telematics Portal login.

Service URL

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

Service method and input parameters

- GetPOIs (string token)

- Token- By Using below api to 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

 

Sample Response – Expired or Invalid Token

Request

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

Response

{

    "ErrorMessage": "Token was expired."

}

 

Sample Response – Invalid Credentials

Request

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

Response

{

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

}

 

Sample Request – Too Many Requests Per Minute

Request

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

Response

{

"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/GetPOIs?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS

Response

[

    {

        "ErrorMessage": null,

        "ID": 26042,

        "Name": "3663 Manchester"

    },

    {

        "ErrorMessage": null,

        "ID": 18855,

        "Name": "A Daisy a Day"

    },

    {

        "ErrorMessage": null,

        "ID": 1142,

        "Name": "A Room In Bloom"

    }

]

Comments

0 comments

Article is closed for comments.