Trying to build Mobile App using Traccar API

balsu767 years ago

Hello

Am new to Traccar.

I have installed Traccar server on Windows environment and configured MySQL as the database. I have been able receive data and is visible in the web portal.

When i am trying to use API from the server i am getting errors

Please note i am trying these api directly from the browser or using PostMan to check the results

the api i am using is Server/api/positions?id=xxx
the browser (chrome) says temporarily unavailable

however when i am using Server/Api/devices i get the list of devices i have registered.

i need to use the API and plot the route for live tracking...

Could you please help out,

balsu767 years ago

Actually from PostMan when i test the API for Positions i get

 
Device Access- Denied - Security Exception (Permission Manager : 194 < PositionResources :76<....)
Anton Tananaev7 years ago

You have to include "Accept" header in the request.

Ferchoes7 years ago

Dear Anton,
Sorry but I am newer in Traccar, what does mean "Accept" in the header?

Anton Tananaev7 years ago

It's a standard HTTP header. It is not something specific to Traccar.