@Multipart @Headers({"Content-Type: multipart/form-data", "Accept: application/json", "Accept-Encoding: gzip, deflate"}) @POST("/api/{userID}/violation/create") VideoAnswer uploadImage(@Part("photo") TypedFile photo, @EncodedPath("userID") String userID, @Part("latitude") double latitude, @Part("longitude") double longitude);
@Override public Response get(@Header("Authorization") String authToken, @EncodedPath("objectType") String objectType, @Body Collection<String> keys) { verifyAuthToken(authToken); try { Collection<TransientObject> got = dao.get(objectType, keys.toArray(new String[keys.size()])); return new GsonResponse("",200,"",null, got).build(); } catch (DAO.DAOException e) { return new GsonResponse("",e.getStatusCode(),e.getMessage(), null, null).build(); } }
/** * Creates a new check-in to the object with the authenticated user. Returns an Interaction * resource containing at least an id. */ @FormUrlEncoded @POST("/{object-id}/checkins") GetGlueInteraction checkin( @EncodedPath("object-id") String objectId, @Field("comment") String comment );
@GET("/feedinfo/{feed_id}") void get_profile(@EncodedPath("feed_id") String feed_id, Callback<FeedInfo> callback);
@GET("/entry/{entry_id}") void get_entry_async(@EncodedPath("entry_id") String entry_id, Callback<Entry> callback);
@GET("/feed/{feed_id}") Feed get_feed_normal(@EncodedPath("feed_id") String feed_id, @Query("start") int start, @Query("num") int num);
@GET("/updates/feed/{feed_id}") Feed get_feed_updates(@EncodedPath("feed_id") String feed_id, @Query("num") int num, @Query("cursor") String cursor, @Query("timeout") int timeout, @Query("updates") int updates);
@GET("/entry/{entry_id}") Entry get_entry(@EncodedPath("entry_id") String entry_id);
@Override public Observable<Integer> count(@Header("Authorization") String authToken, @EncodedPath("objectType") String objectType) { verifyAuthToken(authToken); return Observable.from(dao.count(objectType)); }
/** * Retrieves the specified interaction. Returns an Interaction resource. */ @GET("/{interaction-id}") GetGlueInteractionResource get( @EncodedPath("interaction-id") String interactionId );
/** * Retrieves the collection of vote interactions attached to the specified parent interaction. * Returns an array of Interaction resources. */ @GET("/{interaction-id}/votes") List<GetGlueInteraction> votes( @EncodedPath("interaction-id") String interactionId );
/** * Retrieves the collection of reply interactions attached to the specified parent interaction. * Returns an array of Interaction resources. */ @GET("/{interaction-id}/replies") List<GetGlueInteraction> replies( @EncodedPath("interaction-id") String interactionId );
/** * Retrieve a GetGlue object. Can be any TV show, movie, sports team, game, or episode. */ @GET("/{object-id}") GetGlueObjectResource get( @EncodedPath("object-id") String objectId );
/** * Creates a new check-in to the object with the authenticated user. Returns an Interaction * resource containing at least an id. */ @POST("/{object-id}/checkins") GetGlueInteraction checkin( @EncodedPath("object-id") String objectId );
/** * Creates a new like for the object with the authenticated user. Returns an Interaction object * containing at least an id. */ @POST("/{object-id}/likes") GetGlueInteraction like( @EncodedPath("object-id") String objectId );
/** * <b>OAuth Optional</b> * * <p> Get a user's ratings filtered by movies. You can filter for a specific rating between 1 and 10. * * @param username Example: "sean". * @param filter Filter for a specific rating. */ @GET("/users/{username}/ratings/movies{rating}") List<RatedMovie> ratingsMovies( @Path("username") String username, @EncodedPath("rating") RatingsFilter filter, @EncodedQuery("extended") Extended extended ) throws OAuthUnauthorizedException;
/** * <b>OAuth Optional</b> * * <p> Get a user's ratings filtered by shows. You can filter for a specific rating between 1 and 10. * * @param username Example: "sean". * @param filter Filter for a specific rating. */ @GET("/users/{username}/ratings/shows{rating}") List<RatedShow> ratingsShows( @Path("username") String username, @EncodedPath("rating") RatingsFilter filter, @EncodedQuery("extended") Extended extended ) throws OAuthUnauthorizedException;
/** * <b>OAuth Optional</b> * * <p> Get a user's ratings filtered by seasons. You can filter for a specific rating between 1 and 10. * * @param username Example: "sean". * @param filter Filter for a specific rating. */ @GET("/users/{username}/ratings/seasons{rating}") List<RatedSeason> ratingsSeasons( @Path("username") String username, @EncodedPath("rating") RatingsFilter filter, @EncodedQuery("extended") Extended extended ) throws OAuthUnauthorizedException;
/** * <b>OAuth Optional</b> * * <p> Get a user's ratings filtered by episodes. You can filter for a specific rating between 1 and 10. * * @param username Example: "sean". * @param filter Filter for a specific rating. */ @GET("/users/{username}/ratings/episodes{rating}") List<RatedEpisode> ratingsEpisodes( @Path("username") String username, @EncodedPath("rating") RatingsFilter filter, @EncodedQuery("extended") Extended extended ) throws OAuthUnauthorizedException;
/** * <b>OAuth Required</b> * * <p> Get a user's ratings filtered by movies. You can filter for a specific rating between 1 and 10. * * @param filter Filter for a specific rating. */ @GET("/sync/ratings/movies{rating}") List<RatedMovie> ratingsMovies( @EncodedPath("rating") RatingsFilter filter, @EncodedQuery("extended") Extended extended ) throws OAuthUnauthorizedException;
/** * <b>OAuth Required</b> * * <p> Get a user's ratings filtered by shows. You can filter for a specific rating between 1 and 10. * * @param filter Filter for a specific rating. */ @GET("/sync/ratings/shows{rating}") List<RatedShow> ratingsShows( @EncodedPath("rating") RatingsFilter filter, @EncodedQuery("extended") Extended extended ) throws OAuthUnauthorizedException;
/** * <b>OAuth Required</b> * * <p> Get a user's ratings filtered by seasons. You can filter for a specific rating between 1 and 10. * * @param filter Filter for a specific rating. */ @GET("/sync/ratings/seasons{rating}") List<RatedSeason> ratingsSeasons( @EncodedPath("rating") RatingsFilter filter, @EncodedQuery("extended") Extended extended ) throws OAuthUnauthorizedException;
/** * <b>OAuth Required</b> * * <p> Get a user's ratings filtered by episodes. You can filter for a specific rating between 1 and 10. * * @param filter Filter for a specific rating. */ @GET("/sync/ratings/episodes{rating}") List<RatedEpisode> ratingsEpisodes( @EncodedPath("rating") RatingsFilter filter, @EncodedQuery("extended") Extended extended ) throws OAuthUnauthorizedException;
/** * Retrieve a pageable collection of all feed interactions around the specified object. A feed * is a collection of curated interactions selected from the set of all interactions. Returns an * array of Interaction resources. */ @GET("/{object-id}/feed") List<GetGlueInteraction> feed( @EncodedPath("object-id") String objectId );
@GET("/{path}&output=json") Observable<Archive> getShowData(@EncodedPath("path") String path);
@GET("/{path}") @Streaming Response oobInclude(@EncodedPath("path") String path);