This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Add Third Party Libraries 2:29
- Data Model Classes 4:34
- Interacting with Retrofit 4:47
- Write a Retrofit interface 4 objectives
- Writing Your UI Code with RecyclerView 4:16
- Writing Your Adapter Class 8:31
- Defining onBindViewHolder() 4 objectives
- Wrapping Your UI Code 4:55
- Display Loading and Error States 7:51
- Review: Interacting with the API 5 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Now that we understand how our API works, we will use Retrofit to interact with it.
Retrofit: enables us to create readable Java interfaces and classes that match the API we are accessing, as well as allowing us to interact with simple Java objects instead of having to parse network responses manually
Bring in Retrofit to your API
compile 'com.squareup.retrofit:retrofit:1.9.0'
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
fusiongirl
11,645 Points0 Answers
-
PLUS
George Sideris
Courses Plus Student 3,712 Points3 Answers
-
PLUS
Jose Mena
Courses Plus Student 18,978 Points1 Answer
-
Elias Caceres
8,454 Points1 Answer
-
Louis Sankey
22,595 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up