retrofit2.http.FormUrlEncoded Java Examples

The following examples show how to use retrofit2.http.FormUrlEncoded. 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 MaoWanAndoidClient with Apache License 2.0 5 votes vote down vote up
/**
 * 搜索
 * @param pageNum 页码:拼接在链接上,从0开始
 * @param keyWord 搜索关键词
 * @return
 */
@POST("/article/query/{pageNum}/json")
@FormUrlEncoded
Observable<ResponseBody<HomeArticleListData>> getSearchKeyWordData(
        @Path("pageNum") int pageNum,
        @Field("k") String keyWord
);
 
Example #2
Source File: ApiInterface.java    From Android with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("plex/edit-profile.php")
Call<User> edit_profile(
        @Field("id") String id,
        @Field("full_name") String full_name,
        @Field("email") String email,
        @Field("password") String password,
        @Field("phone") String phone,
        @Field("age") String age);
 
Example #3
Source File: ApiService.java    From MaoWanAndoidClient with Apache License 2.0 5 votes vote down vote up
/**
 * 收藏站外文章
 * @param title
 * @param author
 * @param link
 * @return
 */
@POST("/lg/collect/add/json")
@FormUrlEncoded
Observable<ResponseBody<CollectData>>getCollectOutsideListData(
        @Field("title")String title,
        @Field("author")String author,
        @Field("link")String link
);
 
Example #4
Source File: WanAndroidService.java    From playa with MIT License 5 votes vote down vote up
@POST("user/register")
@FormUrlEncoded
Observable<BaseResponse<LoginResponse>> signup(
        @Field("username") String username,
        @Field("password") String password,
        @Field("repassword") String repassword
);
 
Example #5
Source File: ApiService.java    From MaoWanAndoidClient with Apache License 2.0 5 votes vote down vote up
/**
 * 注册
 * @param username 用户名
 * @param password 密码
 * @param repassword 确认密码
 * @return
 */
@POST("/user/register")
@FormUrlEncoded
Observable<ResponseBody<LoginData>> postSignUpData(
        @Field("username")String username,
        @Field("password")String password,
        @Field("repassword")String repassword
);
 
Example #6
Source File: PersonApis.java    From Yuan-WanAndroid with Apache License 2.0 5 votes vote down vote up
/**
 * 注册
 * http://www.wanandroid.com/user/register
 */
@POST("user/register")
@FormUrlEncoded
Observable<BaseResponse<Login>> register(@Field("username") String username,
                                         @Field("password") String password,
                                         @Field("repassword") String rePassword//确认密码
);
 
Example #7
Source File: PersonApis.java    From Yuan-WanAndroid with Apache License 2.0 5 votes vote down vote up
/**
 * 登陆
 * http://www.wanandroid.com/user/login
 */
@POST("user/login")
@FormUrlEncoded
Observable<BaseResponse<Login>> login(
        @Field("username") String userName,
        @Field("password") String password
);
 
Example #8
Source File: CollectApis.java    From Yuan-WanAndroid with Apache License 2.0 5 votes vote down vote up
/**
 * 收藏列表下取消收藏
 * http://www.wanandroid.com/lg/uncollect/2805/json
 */
@POST("lg/uncollect/{id}/json")
@FormUrlEncoded
Observable<BaseResponse> unCollection(@Path("id") int id,//收藏在我的收藏列表的id
                                      @Field("originId") int originId);
 
Example #9
Source File: ApiService.java    From MaoWanAndoidClient with Apache License 2.0 5 votes vote down vote up
/**
 * 编辑收藏网站
 * @param id 收藏网站 id
 * @param name 网站名称
 * @param link 网站链接
 * @return
 */
@POST("/lg/collect/updatetool/json")
@FormUrlEncoded
Observable<ResponseBody<WebBookMark>> updateWebBookMark(
        @Field("id")int id,
        @Field("name")String name,
        @Field("link")String link
);
 
Example #10
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("api/media/asset.json?raw_json=1&gilding_detail=1")
Call<String> uploadImage(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #11
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/api/editusertext")
Call<String> editPostOrComment(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #12
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/api/marknsfw")
Call<String> markNSFW(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #13
Source File: IHttpPostApi.java    From HaoReader with GNU General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST
Observable<Response<String>> searchBook(@Url String url, @FieldMap(encoded = true) Map<String, String> fieldMap, @HeaderMap Map<String, String> headers);
 
Example #14
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/api/spoiler")
Call<String> markSpoiler(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #15
Source File: ApiInterface.java    From Android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("plex/points.php")
Call<User> get_points(
        @Field("id") String id
);
 
Example #16
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/api/unspoiler")
Call<String> unmarkSpoiler(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #17
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("api/submit")
Call<String> submit(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #18
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/api/save")
Call<String> save(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #19
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/api/read_message")
Call<String> readMessage(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> ids);
 
Example #20
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("api/v1/access_token")
Call<String> getAccessToken(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #21
Source File: ApiInterface.java    From Android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("plex/request.php")
Call<ResponseBody> requestMovie(@Field("user") String movie_id,
                                @Field("title") String title,
                                @Field("description") String description);
 
Example #22
Source File: API.java    From WanAndroid with GNU General Public License v3.0 4 votes vote down vote up
/**
 * 登录
 */
@POST("user/login")
@FormUrlEncoded
Call<Result<UserBean>> postLogin(@Field("username") String username, @Field("password") String password);
 
Example #23
Source File: WanAndroidService.java    From playa with MIT License 4 votes vote down vote up
@POST("article/query/{page}/json")
@FormUrlEncoded
Observable<BaseResponse<ArticleListResponse>> searchArticles(
        @Path("page") int page, @Field("k") String keyword
);
 
Example #24
Source File: RxRestService.java    From FastWaiMai with MIT License 4 votes vote down vote up
@PUT
@FormUrlEncoded
Observable<String> put(@Url String url, @FieldMap Map<String, Object> params);
 
Example #25
Source File: RxRestService.java    From FastWaiMai with MIT License 4 votes vote down vote up
@POST
@FormUrlEncoded
Observable<String> post(@Url String url, @FieldMap Map<String, Object> params);
 
Example #26
Source File: RestService.java    From FastWaiMai with MIT License 4 votes vote down vote up
@PUT
@FormUrlEncoded
Call<String> put(@Url String url, @FieldMap Map<String,Object> params);
 
Example #27
Source File: RestService.java    From FastWaiMai with MIT License 4 votes vote down vote up
@POST
@FormUrlEncoded
Call<String> post(@Url String url, @FieldMap Map<String,Object> params);
 
Example #28
Source File: IHttpPostApi.java    From MyBookshelf with GNU General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST
Observable<Response<String>> postMap(@Url String url,
                                     @FieldMap(encoded = true) Map<String, String> fieldMap,
                                     @HeaderMap Map<String, String> headers);
 
Example #29
Source File: RedditAPI.java    From Infinity-For-Reddit with GNU Affero General Public License v3.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/api/hide")
Call<String> hide(@HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
 
Example #30
Source File: CallistoExplorerApi.java    From guarda-android-wallets with GNU General Public License v3.0 4 votes vote down vote up
@POST("addr")
@FormUrlEncoded
Call<TransactionsListResponse> getTransactions(@Field("addr") String address,
                                               @Field("start") String start,
                                               @Field("length") String length);