I have developed my own traccar client using NativeScipt. But the session POST service returns 400-Bad request in response. This happens only for this request, rest all the APIs work fine. Also, sessions api works fine on the portal and also through postman.
This is the data i am sending:
"{email": "admin", "password": "admin" }"
Please help.
Your JSON is invalid. Also, I'm not sure why you are sending JSON when documentation clearly says that you should use form.
The JSON was a typing mistake. Although, thanks for pointing it out. It is working now.
I have developed my own traccar client using NativeScipt. But the session POST service returns 400-Bad request in response. This happens only for this request, rest all the APIs work fine. Also, sessions api works fine on the portal and also through postman.
This is the data i am sending:
Please help.