retrofit2.http.QueryMap Java Examples

The following examples show how to use retrofit2.http.QueryMap. 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: MaoWanAndoidClient   Author: maoqitian   File: ApiService.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 根据条件 获取 TODO列表
 * @param pageNum 页码从1开始,拼接在url 上
 * @param param status 状态, 1-完成;0未完成; 默认全部展示;
 *              type 创建时传入的类型, 默认全部展示
 *              priority 创建时传入的优先级;默认全部展示
 *              orderby 1:完成日期顺序;2.完成日期逆序;3.创建日期顺序;4.创建日期逆序(默认);
 * @return
 */
/*@GET("/lg/todo/v2/list/{pageNum}/json")
Observable<ResponseBody<TodoData>>getTodoListData(@Path("pageNum") int pageNum,
                                                  @Query("status") int status,
                                                  @Query("type") int type,
                                                  @Query("priority") int priority,
                                                  @Query("orderby") int orderby);*/
@GET("/lg/todo/v2/list/{pageNum}/json")
Observable<ResponseBody<BaseListData<TodoData>>> getTodoListData(@Path("pageNum") int pageNum,
                                                  @QueryMap Map<String,Integer> param);
 
Example #2
Source Project: gplaymusic   Author: FelixGail   File: GPlayService.java    License: MIT License 5 votes vote down vote up
@GET("music/{provider}?net=mob&pt=e")
Call<Void> getTrackLocationMJCK(@Header("X-Device-ID") String androidID,
    @Path("provider") Provider provider,
    @Query("opt") StreamQuality quality,
    @Query("slt") String salt,
    @Query("sig") String signature,
    @Query("mjck") String trackID,
    @QueryMap Map<String, String> kwargs);
 
Example #3
Source Project: tenor-android-core   Author: Tenor-Inc   File: IApiClient.java    License: Apache License 2.0 5 votes vote down vote up
@GET("suggest")
Call<Suggestions> getSuggestions(@QueryMap Map<String, String> serviceIds,
                                 @Query("tag") String tag,
                                 @Query("limit") Integer limit,
                                 @Query("type") String type,
                                 @Query("timezone") String utcOffset,
                                 @Query("allterms") boolean isAllTerms);
 
Example #4
Source Project: a   Author: 804463258   File: IHttpGetApi.java    License: GNU General Public License v3.0 4 votes vote down vote up
@GET
Observable<Response<String>> getMap(@Url String url,
                                    @QueryMap(encoded = true) Map<String, String> queryMap,
                                    @HeaderMap Map<String, String> headers);
 
Example #5
Source Project: last.fm-api   Author: vpaliy   File: LastFmService.java    License: MIT License 4 votes vote down vote up
@GET(Endpoints.TRACK_TAGS)
Single<Response<TagPage>> fetchTrackTags(@Query("track") String track,
                                             @Query("artist") String artist,
                                             @QueryMap Map<String,Object> options);
 
Example #6
Source Project: last.fm-api   Author: vpaliy   File: LastFmService.java    License: MIT License 4 votes vote down vote up
@GET(Endpoints.USER_TOP_TRACKS)
Single<Response<TrackPage>> fetchUserTopTracks(@Query("user") String user,
                                                     @QueryMap Map<String,Object> options);
 
Example #7
Source Project: FastWaiMai   Author: zion223   File: RestService.java    License: MIT License 4 votes vote down vote up
@Streaming
@GET
Call<ResponseBody> download(@Url String url, @QueryMap Map<String, Object> params);
 
Example #8
Source Project: FastWaiMai   Author: zion223   File: RxRestService.java    License: MIT License 4 votes vote down vote up
@GET
Observable<String> get(@Url String url, @QueryMap Map<String, Object> params);
 
Example #9
Source Project: OpenWeatherMap-Android-Library   Author: KwabenBerko   File: OpenWeatherMapService.java    License: MIT License 4 votes vote down vote up
@GET(CURRENT)
Call<CurrentWeather> getCurrentWeatherByCityName(@QueryMap Map<String, String> options);
 
Example #10
Source Project: FastWaiMai   Author: zion223   File: RxRestService.java    License: MIT License 4 votes vote down vote up
@Streaming
@GET
Observable<ResponseBody> download(@Url String url, @QueryMap Map<String, Object> params);
 
Example #11
Source Project: mvvm-template   Author: duyp   File: UserRestService.java    License: GNU General Public License v3.0 4 votes vote down vote up
@GET("user/repos")
Single<Pageable<Repo>> getRepos(@QueryMap(encoded = true) Map<String, String> filterParams, @Query(value = "page") int page);
 
Example #12
Source Project: yelp-fusion-android   Author: ranga543   File: YelpFusionApi.java    License: MIT License 4 votes vote down vote up
@GET("/v3/autocomplete")
Call<AutoComplete> getAutocomplete(@QueryMap Map<String, String> params);
 
Example #13
Source Project: Collection-Android   Author: usernameyangyan   File: RequestService.java    License: MIT License 4 votes vote down vote up
@GET
Observable<ResponseBody> getObservableWithQueryMapWithHeaders(@Url String url, @QueryMap Map<String, Object> map, @HeaderMap Map<String, String> header);
 
Example #14
Source Project: Collection-Android   Author: usernameyangyan   File: RequestService.java    License: MIT License 4 votes vote down vote up
@POST
Observable<ResponseBody> getObservableWithQueryMapByPost(@Url String url, @QueryMap Map<String, Object> map);
 
Example #15
Source Project: Collection-Android   Author: usernameyangyan   File: RequestService.java    License: MIT License 4 votes vote down vote up
@POST
Observable<ResponseBody> getObservableWithQueryMapByPostWithHeaders(@Url String url, @QueryMap Map<String, Object> map, @HeaderMap Map<String, String> headers);
 
Example #16
Source Project: africastalking-java   Author: AfricasTalkingLtd   File: IPayment.java    License: MIT License 4 votes vote down vote up
@GET("/query/transaction/find")
Call<FindTransactionResponse> findTransaction(@QueryMap HashMap<String, String> query);
 
Example #17
Source Project: RetrofitGO   Author: microshow   File: OneWebService.java    License: Apache License 2.0 4 votes vote down vote up
@GET("api/newsflash")
Flowable<Response<MovieModel>> getMovie(@QueryMap Map<String, String> params);
 
Example #18
Source Project: Collection-Android   Author: usernameyangyan   File: RequestService.java    License: MIT License 4 votes vote down vote up
@Multipart
@POST
Observable<ResponseBody> uploadFile(@Url String url, @QueryMap Map<String, Object> map,
                                                 @Part() MultipartBody.Part[] images);
 
Example #19
Source Project: last.fm-api   Author: vpaliy   File: LastFmService.java    License: MIT License 4 votes vote down vote up
@GET(Endpoints.TRACK_INFO)
Single<Response<Track>> fetchTrackInfo(@Query("mbid") String mbid,
                                           @QueryMap Map<String,Object> options);
 
Example #20
Source Project: MyBookshelf   Author: gedoor   File: IHttpGetApi.java    License: GNU General Public License v3.0 4 votes vote down vote up
@GET
Observable<Response<String>> getMap(@Url String url,
                                    @QueryMap(encoded = true) Map<String, String> queryMap,
                                    @HeaderMap Map<String, String> headers);
 
Example #21
Source Project: OpenWeatherMap-Android-Library   Author: KwabenBerko   File: OpenWeatherMapService.java    License: MIT License 4 votes vote down vote up
@GET(FORECAST)
Call<ThreeHourForecast> getThreeHourForecastByGeoCoordinates(@QueryMap Map<String, String> options);
 
Example #22
Source Project: HaoReader   Author: Invinciblelee   File: IShuqiApi.java    License: GNU General Public License v3.0 4 votes vote down vote up
@GET("/webapi/book/chapterlist.php")
@Headers("Content-Type:application/x-www-form-urlencoded")
Observable<Response<String>> getChapterList(@QueryMap Map<String, String> fieldMap);
 
Example #23
Source Project: HaoReader   Author: Invinciblelee   File: IHttpGetApi.java    License: GNU General Public License v3.0 4 votes vote down vote up
@GET
Observable<Response<String>> searchBook(@Url String url,
                                        @QueryMap(encoded = true) Map<String, String> queryMap,
                                        @HeaderMap Map<String, String> headers);
 
Example #24
Source Project: last.fm-api   Author: vpaliy   File: LastFmService.java    License: MIT License 4 votes vote down vote up
@GET(Endpoints.ARTIST_SIMILAR)
Single<Response<ArtistPage>> fetchSimilarArtistsById(@Query("mbid") String mbid,
                                                         @QueryMap Map<String,Object> options);
 
Example #25
Source Project: last.fm-api   Author: vpaliy   File: LastFmService.java    License: MIT License 4 votes vote down vote up
@GET(Endpoints.USER_TOP_ALBUMS)
Single<Response<AlbumPage>> fetchUserTopAlbums(@Query("user") String user,
                                                   @QueryMap Map<String,Object> options);
 
Example #26
Source Project: OpenWeatherMap-Android-Library   Author: KwabenBerko   File: OpenWeatherMapService.java    License: MIT License 4 votes vote down vote up
@GET(FORECAST)
Call<ThreeHourForecast> getThreeHourForecastByCityName(@QueryMap Map<String, String> options);
 
Example #27
Source Project: SoundCloud-API   Author: vpaliy   File: SoundCloudService.java    License: MIT License 4 votes vote down vote up
@GET(Endpoints.TRACKS)
Single<Page<TrackEntity>> searchTracksPage(@QueryMap Map<String, Object> options);
 
Example #28
Source Project: SoundCloud-API   Author: vpaliy   File: SoundCloudService.java    License: MIT License 4 votes vote down vote up
@GET(Endpoints.PLAYLISTS)
Single<Page<PlaylistEntity>> searchPlaylistsPage(@QueryMap Map<String, Object> options);
 
Example #29
Source Project: SoundCloud-API   Author: vpaliy   File: SoundCloudService.java    License: MIT License 4 votes vote down vote up
@GET(Endpoints.USERS)
Single<Page<UserEntity>> searchUsersPage(@QueryMap Map<String, Object> options);
 
Example #30
Source Project: OpenWeatherMap-Android-Library   Author: KwabenBerko   File: OpenWeatherMapService.java    License: MIT License 4 votes vote down vote up
@GET(CURRENT)
Call<CurrentWeather> getCurrentWeatherByCityID(@QueryMap Map<String, String> options);