retrofit2.http.Query Java Examples

The following examples show how to use retrofit2.http.Query. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OrderAPIRetrofit.java    From kucoin-java-sdk with MIT License 5 votes vote down vote up
@GET("api/v1/orders")
Call<KucoinResponse<Pagination<OrderResponse>>> queryOrders(@Query("symbol") String symbol,
                                                            @Query("side") String side,
                                                            @Query("type") String type,
                                                            @Query("status") String status,
                                                            @Query("startAt") Long startAt,
                                                            @Query("endAt") Long endAt,
                                                            @Query("pageSize") int pageSize,
                                                            @Query("currentPage") int currentPage);
 
Example #2
Source File: DepositAPIRetrofit.java    From kucoin-java-sdk with MIT License 5 votes vote down vote up
@GET("api/v1/deposits")
Call<KucoinResponse<Pagination<DepositResponse>>> getDepositPageList(@Query("currentPage") int currentPage,
                                                                     @Query("pageSize") int pageSize,
                                                                     @Query("currency") String currency,
                                                                     @Query("status") String status,
                                                                     @Query("startAt") Long startAt,
                                                                     @Query("endAt") Long endAt);
 
Example #3
Source File: WithdrawalAPIRetrofit.java    From kucoin-java-sdk with MIT License 5 votes vote down vote up
@GET("api/v1/withdrawals")
Call<KucoinResponse<Pagination<WithdrawResponse>>> getWithdrawPageList(@Query("currentPage") int currentPage,
                                                                       @Query("pageSize") int pageSize,
                                                                       @Query("currency") String currency,
                                                                       @Query("status") String status,
                                                                       @Query("startAt") Long startAt,
                                                                       @Query("endAt") Long endAt);
 
Example #4
Source File: GoldService.java    From lifecycle-component with Apache License 2.0 5 votes vote down vote up
/**
 * 文章列表
 */
@Headers({DOMAIN_NAME_HEADER + GOLD_DOMAIN_NAME})
@GET("/1.1/classes/Entry")
Observable<GoldBaseResponse<List<GoldListBean>>> getGoldList(@Header("X-LC-Id") String id,
                                                           @Header("X-LC-Sign") String sign,
                                                           @Query("where") String where,
                                                           @Query("order") String order,
                                                           @Query("include") String include,
                                                           @Query("limit") int limit,
                                                           @Query("skip") int skip);
 
Example #5
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 获取文章列表
 */
@GET("article/list")
Observable<RespData<ArticleResp>> getArticleListInfo(@Query("parent_id") int topId,
                                                     @Query("category_id") int subId,
                                                     @Query("type") int type,
                                                     @Query("start") long startIndex,
                                                     @Query("size") int pageSize);
 
Example #6
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/user/bookmarks/illust")
Observable<ListIllust> getUserLikeIllust(@Header("Authorization") String token,
                                         @Query("user_id") int user_id,
                                         @Query("restrict") String restrict);
 
Example #7
Source File: YoutubeSiteApi.java    From youtube-jextractor with GNU General Public License v2.0 4 votes vote down vote up
@GET("get_video_info")
Call<ResponseBody> getVideoInfo(@Query("video_id") String videoId, @Query("eurl") String eurl);
 
Example #8
Source File: BinanceDexNodeApi.java    From java-sdk with Apache License 2.0 4 votes vote down vote up
@GET("/block_by_hash")
Call<JsonRpcResponse<BlockMeta.BlockMetaResult>> getBlock(@Query("hash") String hash);
 
Example #9
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/user/novels")
Observable<ListNovel> getUserSubmitNovel(@Header("Authorization") String token,
                                         @Query("user_id") int user_id);
 
Example #10
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取文章审核列表
 */
@GET("account/review_articles")
Single<RespData<ReviewArticleListResp>> getReviewArticles(@Query("start") int start,
                                                          @Query("size") int size,
                                                          @Query("status") int status);
 
Example #11
Source File: V9PornServiceApi.java    From v9porn with MIT License 4 votes vote down vote up
@Headers({"Domain-Name: " + Api.PORN9_VIDEO_DOMAIN_NAME})
@GET("/add_favorite.php")
Observable<String> favoriteVideo(@Query("VID") String vid, @Query("UID") String uid, @Query("VUID") String vuid, @Header("Referer") String referer);
 
Example #12
Source File: BinanceDexNodeApi.java    From java-sdk with Apache License 2.0 4 votes vote down vote up
@GET("/abci_query")
Call<JsonRpcResponse<ABCIQueryResult>> getTokenInfo(@Query("path") String pathWithSymbol);
 
Example #13
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/user/bookmarks/illust")
Observable<ListIllust> getUserLikeIllust(@Header("Authorization") String token,
                                         @Query("user_id") int user_id,
                                         @Query("restrict") String restrict,
                                         @Query("tag") String tag);
 
Example #14
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取提现记录
 */
@GET("account/withdraws")
Single<RespData<WithdrawLogResp>> getWithdrawLog(@Query("start") int start,
                                                 @Query("size") int size);
 
Example #15
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/search/novel?filter=for_android&include_translated_tag_results=true")
Observable<ListNovel> searchNovel(@Header("Authorization") String token,
                                    @Query("word") String word,
                                    @Query("sort") String sort,
                                    @Query("search_target") String search_target);
 
Example #16
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/user/follower?filter=for_android")
Observable<ListUser> getWhoFollowThisUser(@Header("Authorization") String token,
                                          @Query("user_id") int user_id);
 
Example #17
Source File: OrderBookAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/market/orderbook/level2_100")
Call<KucoinResponse<OrderBookResponse>> getPartOrderBookAggregated(@Query("symbol") String symbol);
 
Example #18
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/illust/detail?filter=for_android")
Observable<IllustSearchResponse> getIllustByID(@Header("Authorization") String token,
                                               @Query("illust_id") int illust_id);
 
Example #19
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取打赏文章列表
 */
@GET("articles/{article_id}/reward_records")
Single<RespData<RewardListResp>> getRewardArticleList(@Path("article_id") String articleId,
                                                      @Query("size") int size,
                                                      @Query("start") int start);
 
Example #20
Source File: AuthJsonServerResponse.java    From PixivforMuzei3 with GNU General Public License v3.0 4 votes vote down vote up
@GET("v1/user/bookmarks/illust?restrict=public")
Call<Illusts> getBookmarkJson(@Query("user_id") String userId);
 
Example #21
Source File: DouBanServiceApi.java    From v9porn with MIT License 4 votes vote down vote up
@Headers({"Domain-Name: " + Api.DOU_BAN_DOMAIN_NAME})
@GET("/")
Observable<String> listDouBanMeiZhi(@Query("cid") int cid, @Query("page") int page);
 
Example #22
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取文章收藏
 */
@GET("account/collects")
Single<RespData<ArticleCollectResp>> getArticleCollectList(@Query("account_id") int accountId,
                                                           @Query("start") int start,
                                                           @Query("size") int size);
 
Example #23
Source File: SymbolAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/market/stats")
Call<KucoinResponse<SymbolTickResponse>> getMarketStats(@Query("symbol") String symbol);
 
Example #24
Source File: SymbolAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/market/orderbook/level1")
Call<KucoinResponse<TickerResponse>> getTicker(@Query("symbol") String symbol);
 
Example #25
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 查询文件是否存在
 */
@GET("upload_file/info")
Call<RespData<FileInfoCheckResp>> getFileInfo(@Query("hash") String hash,
                                              @Query("filename") String filename);
 
Example #26
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取二级评论
 */
@GET("article/subcomment/list")
Observable<RespData<ArticleReviewResp>> getReviewList(@Query("article_id") String articleId,
                                                      @Query("comment_id") String commentId,
                                                      @Query("start_time") long startTime,
                                                      @Query("size") int size);
 
Example #27
Source File: AccountAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/accounts")
Call<KucoinResponse<List<AccountBalancesResponse>>> getAccountList(
        @Query("currency") String currency, @Query("type") String type);
 
Example #28
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取我的评论
 */
@GET("account/comments")
Single<RespData<MyCommentListResp>> getMyCommentList(@Query("account_id") int accountId,
                                                     @Query("start") int start,
                                                     @Query("size") int size);
 
Example #29
Source File: OrderBookAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/market/orderbook/level2")
Call<KucoinResponse<OrderBookResponse>> getFullOrderBookAggregated(@Query("symbol") String symbol);
 
Example #30
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取公告
 */
@GET("article/announcements")
Single<RespData<AdResp>> getAdvertisement(@Query("start") int start,
                                          @Query("size") int size,
                                          @Query("position") int position);