1

API to Pull Event and Trip Data

Topic: API to Pull Event and Trip Data

Hello Team,

Based on the previous email communication with Tim Scherbakov and : John Grygorcewicz (Phoenix)  we are trying to pull the data for Event and Trip by using the below API call and we are using new token to get the data but seems we are getting error code (Attached Screenshot)

Event:

API Call : https://hst-api.wialon.com/wialon/ajax.html?sid={}&svc=unit/get_drive_rank_settings&params={"itemId":717361}

Reference used for API Call :https://sdk.wialon.com/wiki/en/sidebar/remoteapi/apiref/unit/get_drive_rank_settings

Trip:

API Call : https://hst-api.wialon.com/wialon/ajax.html?sid={}&svc=unit/get_trips&params={"itemId":717361}

Reference used for API Call : https://sdk.wialon.com/wiki/en/sidebar/ … /get_trips

2

API to Pull Event and Trip Data

Re: API to Pull Event and Trip Data

Hello All,

1. Which account do you use to pull the data via API?

- Driver

What kind of drivers do you need?

- We need the list of all driver who are active and inactive in the system.We will be using this as master data to again connect with trip and event.

1. Do you need to pull the list of drivers created in the system?  ---- Yes
2. Do you need to pull the currently assigned driver? ---- Yes
3. Do you need to pull history data driver to know the driver who was driving the vehicle and made violations some time ago? ---- Yes

- Fleet

1. Do you need to pull the list of fleets (unit groups) created in the system? ---- Yes we are looking for the Fleet data (Group of Vehicle)
2. If not, could you please let us know your business case?

- Vehicle

1. Do you need to pull the list of vehicles created in the system? ---- Yes
2. Do you need to pull live location of vehicles? ---- We dont need to live location of vehicle.But yes we need location log record information for trip and event.
3. What kind of data do you need to pull?
- We need the list of all Vehicle in the system.We will be using this as master data to again connect with trip and event.

- Trip

1. Do you need history trips? ---- Yes We need history and on going trip data

- Event

1. What kind of events do you need?
- We are looking for event such as Speeding,Harsh Braking,Harsh Cornering etc basically to understand the driving behaviour and when did it happned.
2. Do you mean harsh driver behavior events? -- Yes

3

API to Pull Event and Trip Data

Re: API to Pull Event and Trip Data

Jayateerth.Sullad wrote:

Hello Team,

Based on the previous email communication with Tim Scherbakov and : John Grygorcewicz (Phoenix)  we are trying to pull the data for Event and Trip by using the below API call and we are using new token to get the data but seems we are getting error code (Attached Screenshot)

Event:

API Call : https://hst-api.wialon.com/wialon/ajax.html?sid={}&svc=unit/get_drive_rank_settings&params={"itemId":717361}

Reference used for API Call :https://sdk.wialon.com/wiki/en/sidebar/remoteapi/apiref/unit/get_drive_rank_settings

Trip:

API Call : https://hst-api.wialon.com/wialon/ajax.html?sid={}&svc=unit/get_trips&params={"itemId":717361}

Reference used for API Call : https://sdk.wialon.com/wiki/en/sidebar/ … /get_trips

Hello !
Unfortunately, there is not attached the screenshot.
Could you please specify about error

Diana Cheley
Wialon Hosting Expert
Gurtam
4

API to Pull Event and Trip Data

Re: API to Pull Event and Trip Data

The error is from the token side or from your API call?

Phoenix Solusi
Mobile Visible Secure
Specialists in data acquisition and analysis for mobile and fixed assets. Integration in to content management systems is a specialty we have.
5

API to Pull Event and Trip Data

Re: API to Pull Event and Trip Data

Hello All,

Reposting again with below question and answers


- Driver

What kind of drivers do you need?

- We need the list of all driver who are active and inactive in the system.We will be using this as master data to again connect with trip and event.

1. Do you need to pull the list of drivers created in the system?  ---- Yes
2. Do you need to pull the currently assigned driver? ---- Yes
3. Do you need to pull history data driver to know the driver who was driving the vehicle and made violations some time ago? ---- Yes

- Fleet

1. Do you need to pull the list of fleets (unit groups) created in the system? ---- Yes we are looking for the Fleet data (Group of Vehicle)
2. If not, could you please let us know your business case?

- Vehicle

1. Do you need to pull the list of vehicles created in the system? ---- Yes
2. Do you need to pull live location of vehicles? ---- We dont need to live location of vehicle.But yes we need location log record information for trip and event.
3. What kind of data do you need to pull?
- We need the list of all Vehicle in the system.We will be using this as master data to again connect with trip and event.

- Trip

1. Do you need history trips? ---- Yes We need history and on going trip data

- Event

1. What kind of events do you need?
- We are looking for event such as Speeding,Harsh Braking,Harsh Cornering etc basically to understand the driving behaviour and when did it happned.
2. Do you mean harsh driver behavior events? -- Yes