Authenticate JSON VMix

Fernando Machado3 years ago

Hi all. I clarify in advance that I am not a programmer, but for some time I have been working on being able to link the VMix software with the data provided by traccar. This software has a section to import data from external applications, which supports JSON, but requires the use of the server's URL. I am trying to obtain the data of speed and distance traveled through api / positions, but like what happens when the call is made through a web browser, it requires the permissions to be able to access that information. I tried http://user:password@iptraccar:8082/api/ positions, but it didn't work. Someone has some other option to be able to inform the server my credentials to be able to access the information ... but calling from a URL.

From already thank you very much

Anton Tananaev3 years ago

It doesn't support even basic authentication?

Fernando Machado3 years ago

From what I am investigating ... the software would not allow basic authentication through the URL ... but in the forum it is indicated that through the use of token if it could ... but in the case of wanting to access api / positions ... how should the URL be made with the included token ... in order to obtain the data?

Anton Tananaev3 years ago

You can only use token to create a session. It can't be used directly to make other API calls.