R
R
Rushan K2018-03-19 21:54:34
API
Rushan K, 2018-03-19 21:54:34

How to form the correct request to the API?

There was a need to contact the API (I did not use it before).
API reference - iridium360 .
It is necessary to get all the track points
If you type it into the address bar of the browser http://api.iridium360.ru/devices?token=номертокена
It gives data according to the documentation (name, number, imei, date, coordinates, speed and amount of charge), but does not give points. (Track, Points). According to the documentation, you need to set the number, include_track, date_from, or point_id_from values.
For this I drove

http://api.iridium360.ru/devices?token=номертокена&number=номерустройства&include_track=true&date_from=2018-03-19

Gives an error message:
{"Error":"Parameters error: You have to specify parameters: date_from, date_to or point_id_from, while specifying include_track parameter"}

I drove in different ways
And in the format 2018-03-19, and in 2018-03-19T10:20:00, and in 2018-03-19T10:20:000Z
And with date_from date_to values
​​Through point_id_from gives an error:
{"Error":"Unknown error"}
Maybe somehow by is it possible for someone else to receive this data, not in the browser?
There is a hosting with php, you can go there, the main thing is to receive data from the tracker
. Please, any solutions, thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question