retrofit2.http.GET Java Examples

The following examples show how to use retrofit2.http.GET. 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: AccountAPIRetrofit.java    From kucoin-java-sdk with 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 #3
Source File: CurrencyAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET(value = "api/v1/currencies")
Call<KucoinResponse<List<CurrencyResponse>>> getCurrencies();
 
Example #4
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 #5
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 #6
Source File: KeDouServiceApi.java    From v9porn with MIT License 4 votes vote down vote up
@Headers({"Domain-Name: " + Api.KE_DOU_WO_DOMAIN_NAME})
@GET
Observable<String> videoRelated(@Url String url, @Header("X-Forwarded-For") String ipAddress);
 
Example #7
Source File: BinanceDexNodeApi.java    From java-sdk with Apache License 2.0 4 votes vote down vote up
@GET("/tx_search")
Call<JsonRpcResponse<BlockInfoResult>> getBlockTransactions(@Query("query") String height,@Query("page") int page,@Query("per_page") int perPage);
 
Example #8
Source File: OrderAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/orders/{orderId}")
Call<KucoinResponse<OrderResponse>> getOrder(@Path("orderId") String orderId);
 
Example #9
Source File: BinanceDexNodeApi.java    From java-sdk with Apache License 2.0 4 votes vote down vote up
@GET("/abci_query?path=%22/store/acc/key%22")
Call<JsonRpcResponse<AccountResult>> getCommittedAccount(@Query("data") String address);
 
Example #10
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 #11
Source File: AccountAPIRetrofit.java    From kucoin-java-sdk with MIT License 4 votes vote down vote up
@GET("api/v1/accounts/{accountId}/holds")
Call<KucoinResponse<Pagination<AccountHoldsResponse>>> getAccountHold(
        @Path("accountId") String accountId,
        @Query("currentPage") int currentPage,
        @Query("pageSize") int pageSize);
 
Example #12
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取我的文章
 */
@GET("account/articles")
Single<RespData<MyArticleResp>> getMyArticleList(@Query("account_id") int accountId,
                                                 @Query("status") int status,
                                                 @Query("start") int start,
                                                 @Query("size") int size);
 
Example #13
Source File: VideoDownloadingService.java    From tv-samples with Apache License 2.0 4 votes vote down vote up
@GET("android_tv_videos_new.json")
Call<VideosWithGoogleTag> getVideosList();
 
Example #14
Source File: ApiService.java    From WanAndroid with MIT License 4 votes vote down vote up
@GET("lg/collect/list/{pageNum}/json")
Observable<ArticleDataRes> getCollectArticles(@Path("pageNum") int pageNum);
 
Example #15
Source File: ApiService.java    From WanAndroid with MIT License 4 votes vote down vote up
@GET("project/tree/json")
Observable<PrimaryArticleDirectoryRes> getProjectTreeData();
 
Example #16
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 #17
Source File: ImageDownloadServerResponse.java    From PixivforMuzei3 with GNU General Public License v3.0 4 votes vote down vote up
@GET
Call<ResponseBody> downloadImage(@Url String url);
 
Example #18
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 #19
Source File: AuthJsonServerResponse.java    From PixivforMuzei3 with GNU General Public License v3.0 4 votes vote down vote up
@GET
Call<Illusts> getNextUrl(@Url String url, Object nextUrl);
 
Example #20
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 #21
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v1/spotlight/articles?filter=for_android")
Observable<ListArticle> getArticles(@Header("Authorization") String token,
                                    @Query("category") String category);
 
Example #22
Source File: WithdrawalAPIRetrofit.java    From kucoin-java-sdk with 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 #23
Source File: AppApi.java    From Pixiv-Shaft with MIT License 4 votes vote down vote up
@GET("v2/search/autocomplete?merge_plain_keyword_results=true")
Observable<ListTrendingtag> searchCompleteWord(@Header("Authorization") String token,
                                               @Query("word") String word);
 
Example #24
Source File: ApiService.java    From tysq-android with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 获取粉丝列表
 */
@GET("account/fans")
Single<RespData<MyFansListResp>> getFansList(@Query("account_id") int accountId,
                                             @Query("start") int start,
                                             @Query("size") int size);
 
Example #25
Source File: SubtitleCheck.java    From GotoBrowser with GNU General Public License v3.0 4 votes vote down vote up
@GET("repos/KC3Kai/KC3Kai/commits")
Call<JsonArray> checkMeta(@Query("path") String path);
 
Example #26
Source File: SubtitleRepo.java    From GotoBrowser with 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);
 
Example #27
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 #28
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("global")
Call<Global> getGlobal();
 
Example #29
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 #30
Source File: CoinGeckoApiService.java    From CoinGecko-Java with MIT License 4 votes vote down vote up
@GET("events/countries")
Call<EventCountries> getEventsCountries();