Created
March 16, 2016 14:32
-
-
Save the-dagger/d4b3570ed5317578f2e9 to your computer and use it in GitHub Desktop.
The Moviedatabase API for retrofit
This file contains 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
package io.github.the_dagger.movies; | |
import retrofit2.Call; | |
import retrofit2.http.GET; | |
import retrofit2.http.Path; | |
/** | |
* Created by Harshit on 2/13/2016. | |
*/ | |
public interface TmdbAPI { | |
@GET ("movie/{id}/videos?api_key="+BuildConfig.MOBDB_API_KEY) | |
Call<Trailers> getTrailers( | |
@Path("id") String id | |
); | |
@GET ("movie/{id}/reviews?api_key="+BuildConfig.MOBDB_API_KEY) | |
Call<Reviews> getReview( | |
@Path("id") String id | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment