Skip to content

Instantly share code, notes, and snippets.

@akndmr
Last active March 3, 2018 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akndmr/c608dbca198a32dc21287549ec1ae71b to your computer and use it in GitHub Desktop.
Save akndmr/c608dbca198a32dc21287549ec1ae71b to your computer and use it in GitHub Desktop.
Popvie - Retrofit HttpClient
public class HttpClient {
private final static String BASE_URL = "https://api.themoviedb.org/3/";
public final MovieService mMovieService;
public HttpClient() {
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build();
mMovieService = retrofit.create(MovieService.class);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment