get expiration time drom api in android

MBY6 years ago

Hi
I want to get the expiration time for a user from api ti show it in android app
in the api it show that only admin user can get users object as expiration date is in it
is there any other way to get expiration time just for a user from api???
thank you

Anton Tananaev6 years ago

Yes, you should use session endpoint.

MBY6 years ago

thank you
but I need a token to do it
there is so many users
how can i do it?

Anton Tananaev6 years ago

You don't need token.

MBY6 years ago

I try to use it from any-api.com site
i have an account in your demo site and try to use it from any-api.com
i take session from the list and enter my login information from your demo site demo.traccar.org and fill token out
when i try to conncet it i got error 404

Anton Tananaev6 years ago

I don't know anything about any-api. There is official Traccar API documentation. Use that to construct correct requests. If you don't understand it, read and study something about REST API and how it works.

MBY6 years ago

thanks for your replies
i try to read more documantation about it