package ml.docilealligator.infinityforreddit.apis; import java.util.Map; import retrofit2.Call; import retrofit2.http.FieldMap; import retrofit2.http.FormUrlEncoded; import retrofit2.http.GET; import retrofit2.http.HeaderMap; import retrofit2.http.POST; import retrofit2.http.Path; import retrofit2.http.Query; public interface RedgifsAPI { @GET("/v2/gifs/{id}") Call getRedgifsData(@HeaderMap Map headers, @Path("id") String id, @Query("user-agent") String userAgent); @FormUrlEncoded @POST("/v2/oauth/client") Call getRedgifsAccessToken(@FieldMap Map params); }