Use Retrofit and its annotations, to implement an API request in the api service. Learn about the Call and Callback types in Retrofit.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/35031245-android-networking-fundamentals/lessons/12