Skip to content

Instantly share code, notes, and snippets.

@the-dagger
Created March 16, 2016 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save the-dagger/d4b3570ed5317578f2e9 to your computer and use it in GitHub Desktop.
Save the-dagger/d4b3570ed5317578f2e9 to your computer and use it in GitHub Desktop.
The Moviedatabase API for retrofit
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