Skip to content

Instantly share code, notes, and snippets.

@kinisoftware
Created July 27, 2019 11:15
Show Gist options
  • Select an option

  • Save kinisoftware/1aee905b8adf299e33ca4ea8b03d9e14 to your computer and use it in GitHub Desktop.

Select an option

Save kinisoftware/1aee905b8adf299e33ca4ea8b03d9e14 to your computer and use it in GitHub Desktop.
interface TheMovieDBAPI {
@GET("movie/now_playing")
fun getNowPlaying(
@Query("api_key") apiKey: String,
@Query("language") language: String,
@Query("page") page: Int,
@Query("region") region: String
): Call<ApiResults>
@GET("movie/upcoming")
fun getUpcomings(
@Query("api_key") apiKey: String,
@Query("language") language: String,
@Query("page") page: Int,
@Query("region") region: String
): Call<ApiResults>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment