Java Code Examples for retrofit2.http.Query

The following examples show how to use retrofit2.http.Query. These examples are extracted from open source projects. 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 want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: tysq-android   Source File: ApiService.java    License: 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 Project: lifecycle-component   Source File: GoldService.java    License: 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 Project: kucoin-java-sdk   Source File: WithdrawalAPIRetrofit.java    License: 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 Project: kucoin-java-sdk   Source File: DepositAPIRetrofit.java    License: 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 Project: kucoin-java-sdk   Source File: OrderAPIRetrofit.java    License: 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 Project: android-performance   Source File: APIService.java    License: 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 Project: tysq-android   Source File: ApiService.java    License: 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 Project: Pixiv-Shaft   Source File: AppApi.java    License: 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
@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 Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: 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 Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: 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 Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: 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 Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: 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
@GET("v1/user/illusts?filter=for_ios")
Call<Illusts> getArtistJson(@Query("user_id") String artist_id);
 
Example 15
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: 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 Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: 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 Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: 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 Project: tysq-android   Source File: ApiService.java    License: 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 Project: Focus   Source File: HttpInterface.java    License: 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 Project: Pixiv-Shaft   Source File: AppApi.java    License: 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 Project: Focus   Source File: HttpInterface.java    License: 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 Project: tysq-android   Source File: ApiService.java    License: 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 Project: tysq-android   Source File: ApiService.java    License: 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 Project: Pixiv-Shaft   Source File: AppApi.java    License: 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 Project: WanAndroid   Source File: ApiService.java    License: 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 Project: WanAndroid   Source File: ApiService.java    License: 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 Project: tysq-android   Source File: ApiService.java    License: 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 Project: kucoin-java-sdk   Source File: HistoryAPIRetrofit.java    License: 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 Project: kucoin-java-sdk   Source File: HistoryAPIRetrofit.java    License: 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 Project: kucoin-java-sdk   Source File: OrderBookAPIRetrofit.java    License: MIT License 4 votes vote down vote up
@GET("api/v1/market/orderbook/level2_100")
Call<KucoinResponse<OrderBookResponse>> getPartOrderBookAggregated(@Query("symbol") String symbol);