mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-30 21:07:11 +01:00
Remove unused API.
This commit is contained in:
parent
6aaef3820c
commit
1d73231a82
@ -46,39 +46,6 @@ public interface RedditAPI {
|
|||||||
@GET("comments/{id}.json?raw_json=1")
|
@GET("comments/{id}.json?raw_json=1")
|
||||||
Call<String> getPost(@Path("id") String id);
|
Call<String> getPost(@Path("id") String id);
|
||||||
|
|
||||||
@GET("{sortType}?raw_json=1")
|
|
||||||
Call<String> getBestPosts(@Path("sortType") String sortType, @Query("after") String lastItem, @HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("{sortType}?raw_json=1")
|
|
||||||
Call<String> getBestPosts(@Path("sortType") String sortType, @Query("t") String sortTime,
|
|
||||||
@Query("after") String lastItem, @HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25")
|
|
||||||
Call<String> getSubredditBestPostsOauth(@Path("subredditName") String subredditName, @Path("sortType") String sortType,
|
|
||||||
@Query("after") String lastItem, @HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25")
|
|
||||||
Call<String> getSubredditBestPostsOauth(@Path("subredditName") String subredditName, @Path("sortType") String sortType,
|
|
||||||
@Query("t") String sortTime, @Query("after") String lastItem,
|
|
||||||
@HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25")
|
|
||||||
Call<String> getSubredditBestPosts(@Path("subredditName") String subredditName, @Path("sortType") String sortType,
|
|
||||||
@Query("after") String lastItem);
|
|
||||||
|
|
||||||
@GET("r/{subredditName}/{sortType}.json?raw_json=1&limit=25")
|
|
||||||
Call<String> getSubredditBestPosts(@Path("subredditName") String subredditName, @Path("sortType") String sortType,
|
|
||||||
@Query("t") String sortTime, @Query("after") String lastItem);
|
|
||||||
|
|
||||||
@GET("user/{username}/{where}.json?&type=links&raw_json=1&limit=25")
|
|
||||||
Call<String> getUserPostsOauth(@Path("username") String username, @Path("where") String where,
|
|
||||||
@Query("after") String lastItem, @Query("sort") String sortType, @HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("user/{username}/{where}.json?&type=links&raw_json=1&limit=25")
|
|
||||||
Call<String> getUserPostsOauth(@Path("username") String username, @Path("where") String where,
|
|
||||||
@Query("after") String lastItem, @Query("sort") String sortType,
|
|
||||||
@Query("t") String sortTime, @HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("user/{username}/submitted.json?raw_json=1&limit=25")
|
@GET("user/{username}/submitted.json?raw_json=1&limit=25")
|
||||||
Call<String> getUserPosts(@Path("username") String username, @Query("after") String lastItem,
|
Call<String> getUserPosts(@Path("username") String username, @Query("after") String lastItem,
|
||||||
@Query("sort") String sortType);
|
@Query("sort") String sortType);
|
||||||
@ -139,48 +106,6 @@ public interface RedditAPI {
|
|||||||
Call<String> searchUsers(@Query("q") String profileName, @Query("after") String after,
|
Call<String> searchUsers(@Query("q") String profileName, @Query("after") String after,
|
||||||
@Query("sort") String sort, @Query("include_over_18") int nsfw);
|
@Query("sort") String sort, @Query("include_over_18") int nsfw);
|
||||||
|
|
||||||
@GET("search.json?include_over_18=1&raw_json=1&type=link")
|
|
||||||
Call<String> searchPostsOauth(@Query("q") String query, @Query("after") String after,
|
|
||||||
@Query("sort") String sort, @Query("source") String source,
|
|
||||||
@HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("search.json?include_over_18=1&raw_json=1&type=link")
|
|
||||||
Call<String> searchPostsOauth(@Query("q") String query, @Query("after") String after,
|
|
||||||
@Query("sort") String sort, @Query("t") String sortTime,
|
|
||||||
@Query("source") String source,
|
|
||||||
@HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("search.json?include_over_18=1&raw_json=1&type=link")
|
|
||||||
Call<String> searchPosts(@Query("q") String query, @Query("after") String after,
|
|
||||||
@Query("sort") String sort, @Query("source") String source);
|
|
||||||
|
|
||||||
@GET("search.json?include_over_18=1&raw_json=1&type=link")
|
|
||||||
Call<String> searchPosts(@Query("q") String query, @Query("after") String after,
|
|
||||||
@Query("sort") String sort, @Query("t") String sortTime,
|
|
||||||
@Query("source") String source);
|
|
||||||
|
|
||||||
@GET("r/{subredditName}/search.json?include_over_18=1&raw_json=1&type=link&restrict_sr=true")
|
|
||||||
Call<String> searchPostsInSpecificSubredditOauth(@Path("subredditName") String subredditName,
|
|
||||||
@Query("q") String query, @Query("sort") String sort,
|
|
||||||
@Query("after") String after,
|
|
||||||
@HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("r/{subredditName}/search.json?include_over_18=1&raw_json=1&type=link&restrict_sr=true")
|
|
||||||
Call<String> searchPostsInSpecificSubredditOauth(@Path("subredditName") String subredditName,
|
|
||||||
@Query("q") String query, @Query("sort") String sort,
|
|
||||||
@Query("t") String sortTime, @Query("after") String after,
|
|
||||||
@HeaderMap Map<String, String> headers);
|
|
||||||
|
|
||||||
@GET("r/{subredditName}/search.json?include_over_18=1&raw_json=1&type=link&restrict_sr=true")
|
|
||||||
Call<String> searchPostsInSpecificSubreddit(@Path("subredditName") String subredditName,
|
|
||||||
@Query("q") String query, @Query("sort") String sort,
|
|
||||||
@Query("after") String after);
|
|
||||||
|
|
||||||
@GET("r/{subredditName}/search.json?include_over_18=1&raw_json=1&type=link&restrict_sr=true")
|
|
||||||
Call<String> searchPostsInSpecificSubreddit(@Path("subredditName") String subredditName,
|
|
||||||
@Query("q") String query, @Query("sort") String sort,
|
|
||||||
@Query("t") String sortTime, @Query("after") String after);
|
|
||||||
|
|
||||||
@FormUrlEncoded
|
@FormUrlEncoded
|
||||||
@POST("api/comment")
|
@POST("api/comment")
|
||||||
Call<String> sendCommentOrReplyToMessage(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
|
Call<String> sendCommentOrReplyToMessage(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
|
||||||
|
Loading…
Reference in New Issue
Block a user