Java Code Examples for retrofit2.http.GET

The following examples show how to use retrofit2.http.GET. 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 check out the related API usage on the sidebar.
Example 1
Source Project: kucoin-java-sdk   Source File: AccountAPIRetrofit.java    License: MIT License 5 votes vote down vote up
@GET("api/v1/accounts/{accountId}/ledgers")
Call<KucoinResponse<Pagination<AccountDetailResponse>>> getAccountDetail(
        @Path("accountId") String accountId,
        @Query("currentPage") int currentPage,
        @Query("pageSize") int pageSize,
        @Query("startAt") long startAt,
        @Query("endAt") long endAt);
 
Example 2
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 3
Source Project: kucoin-java-sdk   Source File: WithdrawalAPIRetrofit.java    License: MIT License 4 votes vote down vote up
@GET("api/v1/withdrawals/quotas")
Call<KucoinResponse<WithdrawQuotaResponse>> getWithdrawQuotas(@Query("currency") String currency,
                                                              @Query("chain") String chain);
 
Example 4
@GET("v1/user/bookmarks/illust?restrict=public")
Call<Illusts> getBookmarkJson(@Query("user_id") String userId);
 
Example 5
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 6
Source Project: Pixiv-Shaft   Source File: AppApi.java    License: MIT License 4 votes vote down vote up
@GET("v2/illust/bookmark/detail")
Observable<ListBookmarkTag> getIllustBookmarkTags(@Header("Authorization") String token,
                                                  @Query("illust_id") int illust_id);
 
Example 7
Source Project: kucoin-java-sdk   Source File: AccountAPIRetrofit.java    License: MIT License 4 votes vote down vote up
@GET("api/v1/accounts/{accountId}")
Call<KucoinResponse<AccountBalanceResponse>> getAccount(@Path("accountId") String accountId);
 
Example 8
Source Project: tysq-android   Source File: ApiService.java    License: 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 9
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: MIT License 4 votes vote down vote up
@GET("coins/list")
Call<List<CoinList>> getCoinList();
 
Example 10
Source Project: java-sdk   Source File: BinanceDexNodeApi.java    License: Apache License 2.0 4 votes vote down vote up
@GET("/abci_query?path=%22/param/fees%22")
Call<JsonRpcResponse<ABCIQueryResult>> getFees();
 
Example 11
Source Project: tysq-android   Source File: ApiService.java    License: GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取评论
 */
@GET("article/comment/list")
Observable<RespData<ArticleReviewResp>> getArticleReviewList(@Query("article_id") String articleId,
                                                             @Query("start_time") long startTime,
                                                             @Query("size") int size);
 
Example 12
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);
 
Example 13
Source Project: Pixiv-Shaft   Source File: AppApi.java    License: 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 14
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 15
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 16
Source Project: v9porn   Source File: MeiZiTuServiceApi.java    License: MIT License 4 votes vote down vote up
@Headers({"Referer: " + Api.APP_MEIZITU_DOMAIN,
        "Domain-Name: " + Api.MEI_ZI_TU_DOMAIN_NAME})
@GET("taiwan/page/{page}/")
Observable<String> meiZiTuJaiwan(@Path("page") int page);
 
Example 17
Source Project: kucoin-java-sdk   Source File: SymbolAPIRetrofit.java    License: MIT License 4 votes vote down vote up
@GET("api/v1/market/stats")
Call<KucoinResponse<SymbolTickResponse>> getMarketStats(@Query("symbol") String symbol);
 
Example 18
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: MIT License 4 votes vote down vote up
@GET("exchanges")
Call<List<Exchanges>> getExchanges();
 
Example 19
Source Project: kucoin-java-sdk   Source File: AccountAPIRetrofit.java    License: 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 20
Source Project: v9porn   Source File: MeiZiTuServiceApi.java    License: MIT License 4 votes vote down vote up
@Headers({"Referer: " + Api.APP_MEIZITU_DOMAIN,
        "Domain-Name: " + Api.MEI_ZI_TU_DOMAIN_NAME})
@GET("{id}")
Observable<String> meiZiTuImageList(@Path("id") int id);
 
Example 21
Source Project: java-sdk   Source File: BinanceDexNodeApi.java    License: Apache License 2.0 4 votes vote down vote up
@GET("/abci_query?path=%22custom/stake/validators%22")
Call<JsonRpcResponse<ABCIQueryResult>> getStakeValidators();
 
Example 22
Source Project: java-sdk   Source File: BinanceDexNodeApi.java    License: Apache License 2.0 4 votes vote down vote up
@GET("/tx")
Call<JsonRpcResponse<TransactionResult>> getTransaction(@Query("hash") String hash);
 
Example 23
Source Project: tysq-android   Source File: ApiService.java    License: GNU General Public License v3.0 4 votes vote down vote up
/**
 * 下载视频扣积分   mArticleId,
 */
@GET("original_videos/{fileId}/judgement")
Single<RespData<ArticleDownloadVideoResp>> getVideoJudgement(@Path("fileId") int fileId,
                                                             @Query("article_id") String articleId);
 
Example 24
Source Project: tysq-android   Source File: ApiService.java    License: 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 25
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: MIT License 4 votes vote down vote up
@GET("events")
Call<Events> getEvents();
 
Example 26
Source Project: v9porn   Source File: V9PornServiceApi.java    License: MIT License 4 votes vote down vote up
@Headers({"Domain-Name: " + Api.PORN9_VIDEO_DOMAIN_NAME})
@GET("captcha.php")
Observable<ResponseBody> captcha();
 
Example 27
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: MIT License 4 votes vote down vote up
@GET("events/countries")
Call<EventCountries> getEventsCountries();
 
Example 28
Source Project: CoinGecko-Java   Source File: CoinGeckoApiService.java    License: MIT License 4 votes vote down vote up
@GET("global")
Call<Global> getGlobal();
 
Example 29
Source Project: java-sdk   Source File: BinanceDexNodeApi.java    License: Apache License 2.0 4 votes vote down vote up
@GET("/abci_query")
Call<JsonRpcResponse<ABCIQueryResult>> getTokenInfo(@Query("path") String pathWithSymbol);
 
Example 30
Source Project: GotoBrowser   Source File: SubtitleRepo.java    License: GNU General Public License v3.0 4 votes vote down vote up
@GET("KC3Kai/kc3-translations/{commit}/{path}")
Call<JsonObject> download(@Path("commit") String commit, @Path("path") String path);