Skip to content

Instantly share code, notes, and snippets.

@lukaszkalnik
Last active June 18, 2020 16:28
Show Gist options
  • Save lukaszkalnik/413621984ebf59bc91942ef1eee39b4c to your computer and use it in GitHub Desktop.
Save lukaszkalnik/413621984ebf59bc91942ef1eee39b4c to your computer and use it in GitHub Desktop.
Retrofit.Builder()
.baseUrl("https://api.themoviedb.org/3/")
.addConverterFactory(Json.asConverterFactory(contentType))
.addCallAdapterFactory(EitherCallAdapterFactory())
.build()
.create(TmdbApi::class.java)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment