From the course: Android Development: Retrofit with Java

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Authorize every request

Authorize every request - Android Tutorial

From the course: Android Development: Retrofit with Java

Start my 1-month free trial

Authorize every request

- [Instructor] We have authorized the one call - [Instructor] We have authorized the one call - [Instructor] We have authorized the one call to get user details to get user details to get user details and now, we need to authorize all of the other calls and now, we need to authorize all of the other calls and now, we need to authorize all of the other calls that we make. that we make. that we make. Doing this for every method definition, though, Doing this for every method definition, though, Doing this for every method definition, though, can be rather tedious and will require you to provide can be rather tedious and will require you to provide can be rather tedious and will require you to provide an authorization header as a parameter in every single one. an authorization header as a parameter in every single one. an authorization header as a parameter in every single one. Instead, we can make this easier Instead, we can make this easier Instead, we…

Contents