Skip to content

Instantly share code, notes, and snippets.

@enginebai
Created August 3, 2020 14:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save enginebai/ced3a084a2df654cbe3dbaf703c2e940 to your computer and use it in GitHub Desktop.
MovieHunt blog part2. api service add api key parameter
interface MovieApiService {
@GET("movie/{list}")
fun fetchMovieList(
...
@Query("api_key") apiKey: String
): Single<TmdbApiResponse<MovieListResponse>>
@GET("movie/{movieId}")
fun fetchMovieDetail(
...
@Query("api_key") apiKey: String
): Single<MovieDetailResponse>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment