How do I call REST API with bearer token from an Android app?

Viewed 1039

I'm new in Android and programming as well. I would like to build an Android app with user login and registration. What's the easiest way to make REST API calls on Android for a beginner? I also have to pass a bearer token in the header and two parameter in body (name and password).

1 Answers

You can use retrofit

Retrofit is a REST Client for Java and Android. It makes it relatively easy to retrieve and upload JSON (or other structured data) via a REST based webservice. source

also check this answer

Related