Created
August 3, 2020 14:19
-
-
Save enginebai/ced3a084a2df654cbe3dbaf703c2e940 to your computer and use it in GitHub Desktop.
MovieHunt blog part2. api service add api key parameter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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