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: 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 #2
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 #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: 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 #5
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 #6
Source File: APIService.java    From android-performance with MIT License 4 votes vote down vote up
@GET("news/item")
Call<ResponseBody> getNBANews(@Query("column") String column,
                              @Query("articleIds") String articleIds);
 
Example #7
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);
 
Example #8
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/user/detail?filter=for_android")
Observable<UserDetailResponse> getUserDetail(@Header("Authorization") String token,
                                             @Query("user_id") int user_id);
 
Example #9
Source File: AuthJsonServerResponse.java    From PixivforMuzei3 with GNU General Public License v3.0 4 votes vote down vote up
@GET("v1/search/illust?search_target=partial_match_for_tags&sort=date_desc&filter=for_ios")
Call<Illusts> getTagSearchJson(@Query("word") String tag);
 
Example #10
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("simple/token_price/{id}")
Call<Map<String,Map<String, Double>>> getTokenPrice(@Path("id") String id, @Query("contract_addresses") String contractAddress,
                           @Query("vs_currencies") String vsCurrencies, @Query("include_market_cap") boolean includeMarketCap,
                           @Query("include_24hr_vol") boolean include24hrVol, @Query("include_24hr_change") boolean include24hrChange,
                           @Query("include_last_updated_at") boolean includeLastUpdatedAt);
 
Example #11
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("coins/{id}/tickers")
Call<CoinTickerById> getCoinTickerById(@Path("id") String id, @Query("exchange_ids") String exchangeIds,
                                       @Query("page") Integer page,@Query("order") String order);
 
Example #12
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("coins/{id}/market_chart")
Call<MarketChart> getCoinMarketChartById(@Path("id") String id, @Query("vs_currency") String vsCurrency,
                                    @Query("days") Integer days);
 
Example #13
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("coins/{id}/market_chart/range")
Call<MarketChart> getCoinMarketChartRangeById(@Path("id") String id, @Query("vs_currency") String vsCurrency,
                                              @Query("from") String from, @Query("to") String to);
 
Example #14
Source File: AuthJsonServerResponse.java    From PixivforMuzei3 with GNU General Public License v3.0 4 votes vote down vote up
@GET("v1/user/illusts?filter=for_ios")
Call<Illusts> getArtistJson(@Query("user_id") String artist_id);
 
Example #15
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("exchanges/{id}/tickers")
Call<ExchangesTickersById> getExchangesTickersById(@Path("id") String id, @Query("coin_ids") String coinIds,
                                                   @Query("page") Integer page, @Query("order") String order);
 
Example #16
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("exchanges/{id}/status_updates")
Call<StatusUpdates> getExchangesStatusUpdatesById(@Path("id") String id, @Query("per_page")Integer perPage,
                                                           @Query("page") Integer page);
 
Example #17
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("status_updates")
Call<StatusUpdates> getStatusUpdates(@Query("category") String category, @Query("project_type") String projectType,
                              @Query("per_page") Integer perPage, @Query("page") Integer page);
 
Example #18
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取标签
 */
@GET("article/label")
Single<RespData<LabelResp>> getLabel(@Query("start") int start,
                                     @Query("size") int size,
                                     @Query("name") String name);
 
Example #19
Source File: HttpInterface.java    From Focus with GNU General Public License v3.0 4 votes vote down vote up
@GET("weblist")
Call<List<Website>> getWebsiteListByCategory(@Query("name") String name);
 
Example #20
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/novel/text")
Observable<NovelDetail> getNovelDetail(@Header("Authorization") String token,
                                       @Query("novel_id") int novel_id);
 
Example #21
Source File: HttpInterface.java    From Focus with GNU General Public License v3.0 4 votes vote down vote up
@GET("feedRequireList")
Call<List<FeedRequire>> getFeedRequireListByWebsite(@Query("id") String id);
 
Example #22
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取通知列表
 */
@GET("notify/notifications")
Single<RespData<NotifyInfoResp>> getNotificationList(@Query("size") int size,
                                                     @Query("start") int start);
 
Example #23
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取禁止评论列表用户驳回原因
 */
@GET("account/comment_blacklist")
Single<RespData<ForbidCommentResp>> getForbidComment(@Query("start") int start,
                                                     @Query("size") int size,
                                                     @Query("account") String account);
 
Example #24
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/illust/bookmark/users?filter=for_android")
Observable<ListSimpleUser> getUsersWhoLikeThisIllust(@Header("Authorization") String token,
                                 @Query("illust_id") int illust_id);
 
Example #25
Source File: ApiService.java    From WanAndroid with MIT License 4 votes vote down vote up
@GET("project/list/{pageNum}/json")
Observable<ArticleDataRes> getProectTreeDetailArticleData(@Path("pageNum") int pageNum, @Query("cid") int cid);
 
Example #26
Source File: ApiService.java    From WanAndroid with MIT License 4 votes vote down vote up
@GET("wxarticle/list/{cid}/{pageNum}/json")
Observable<ArticleDataRes> searchWechatChapterArticles(@Path("cid") int cid, @Path("pageNum") int pageNum, @Query("k") String keywords);
 
Example #27
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取金币订单
 */
@GET("account/coin_order")
Single<RespData<CoinOrderResp>> getCoinOrder(@Query("status") int status,
                                             @Query("start") int start,
                                             @Query("size") int size);
 
Example #28
Source File: HistoryAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/market/histories")
Call<KucoinResponse<List<TradeHistoryResponse>>> getTradeHistories(@Query("symbol") String symbol);
 
Example #29
Source File: HistoryAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/market/candles")
Call<KucoinResponse<List<List<String>>>> getHistoricRates(@Query("symbol") String symbol,
                                                          @Query("startAt") long startAt,
                                                          @Query("endAt") long endAt,
                                                          @Query("type") String type);
 
Example #30
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);