retrofit.http.POST Java Examples

The following examples show how to use retrofit.http.POST. 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: PatrulatrulAPI.java    From patrol-android with GNU General Public License v3.0 6 votes vote down vote up
@Multipart
@Headers({"Content-Type: multipart/form-data",
        "Accept: application/json",
        "Accept-Encoding: gzip, deflate"})
@POST("/api/{userID}/violation/create")
VideoAnswer uploadImage(@Part("photo") TypedFile photo,
                        @EncodedPath("userID") String userID,
                        @Part("latitude") double latitude,
                        @Part("longitude") double longitude);
 
Example #2
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getRestaurantPhotos")
public void getRestaurantPhotos(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.RESTAURANT_BRANCH_ID) String restaurant_branch_id,
        Callback<RestaurantImageResponse> cb
);
 
Example #3
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/setUserHandle")
public void setUserHandle(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.HANDLE) String handle,
        Callback<NormalResponse> cb
);
 
Example #4
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/comment_delete")
Observable<RespResult> deleteNormalComment(
        @Field("id") long aid,
        @Field("catalog") int catalog,
        @Field("replyid") long rid,
        @Field("authorid") long auid
);
 
Example #5
Source File: RetroInterface.java    From Expert-Android-Programming with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/getSearchRestaurants")
public void getSearchRestaurants(
        @Field(Constant.USER_ID) String user_id,
        @Field(Constant.DATA) String data,
        @Field(Constant.LATITUDE) String latitude,
        @Field(Constant.LONGITUDE) String longitude,
        Callback<RestaurantResponse> cb
);
 
Example #6
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 5 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/comment_reply")
Observable<RespResult> replyNormalComment(
        @Field("catalog") int catalog,
        @Field("id") long aid,
        @Field("uid") long uid,
        @Field("content") String content,
        @Field("replyid") int rid,
        @Field("authorid") int auid
);
 
Example #7
Source File: AccountApi.java    From talk-android with MIT License 5 votes vote down vote up
@POST("/mobile/sendverifycode")
Observable<RandomCodeData> sendVerifyCode(
        @Query("phoneNumber") String phoneNumber,
        @Query("action") String action,
        @Query("password") String password,
        @Query("uid") String uid
);
 
Example #8
Source File: TalkApi.java    From talk-android with MIT License 5 votes vote down vote up
@FormUrlEncoded
@POST("/rooms")
Observable<Room> createRoom(
        @Field("_teamId") String teamId,
        @Field("topic") String topic,
        @Field("color") String color,
        @Field("purpose") String goal);
 
Example #9
Source File: ListUserFriendsRequest.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST(WebserviceOptions.WebServicesLink+"3/listUserFriends")
@FormUrlEncoded
public ListUserFriendsJson run(@FieldMap HashMap<String, String> args);
 
Example #10
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("/favorites")
Observable<Object> favoriteMessage(@Field("_messageId") String messageId);
 
Example #11
Source File: DexcomShare.java    From xDrip-plus with GNU General Public License v3.0 4 votes vote down vote up
@POST("Publisher/DeleteContact")
@Headers({"Content-Length: 0"})
Call<ResponseBody> deleteContact(@Query("sessionId") String sessionId,
                                 @Query("contactId") String contactId);
 
Example #12
Source File: UploadApi.java    From talk-android with MIT License 4 votes vote down vote up
@Multipart
@POST("/upload")
Observable<FileUploadResponseData> uploadFile(@Part("name") String name, @Part("type") String mimeType, @Part("size") long fileSize, @Part("file") TypedFile file);
 
Example #13
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("/devicetokens")
Observable<Object> postToken(@Field("token") String token);
 
Example #14
Source File: Webservices.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST(ws2 + "/bulkRequest/api_list/getStore,listApps/")
BulkResponse bulkGetStoreListAppsRequest(@Body Api user) throws TicketException;
 
Example #15
Source File: IGetAppV7WebService.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST(BASE_V7_URL + "/getApp")
GetApp getApp(@Body Apiv7 api);
 
Example #16
Source File: IGetStoreWebService.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST("/ws2.aptoide.com/api/6/getStore")
BulkResponse.GetStore checkServer(@Body Api.GetStore body);
 
Example #17
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/teams/{id}/invite")
Observable<Invitation> inviteRookieViaEmail(@Path("id") String teamId,
                                            @Query("email") String email);
 
Example #18
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/teams/{id}/invite")
Observable<Invitation> inviteRookieViaPhone(@Path("id") String teamId,
                                            @Query("mobile") String mobile);
 
Example #19
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/favorites/batchremove")
Observable<Object> batchRemoveFavorites(@Body RemoveFavoritesRequestData data);
 
Example #20
Source File: CallApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/2013-12-26/Accounts/{accountSid}/ivr/createconf?maxmember=300")
Observable<CreateCallMeeting> createCallMeeting(@Header("authorization") String authorization, @Path("accountSid") String accountSid, @Query("sig") String signature, @Body CreateCallMeetingData data);
 
Example #21
Source File: CallApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/2013-12-26/SubAccounts/{subAccountSid}/Calls/CallCancel")
Observable<Object> cancelDialBackCall(@Header("authorization") String authorization, @Path("subAccountSid") String subAccountSid, @Query("sig") String signature, @Body CallCancelData data);
 
Example #22
Source File: AccountApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/union/bind/teambition")
Observable<User> bindTeambition(@Query("code") String code);
 
Example #23
Source File: ApiClient.java    From braintree-android-drop-in with MIT License 4 votes vote down vote up
@FormUrlEncoded
@POST("/nonce/transaction")
void createTransaction(@Field("nonce") String nonce, @Field("merchant_account_id") String merchantAccountId, @Field("three_d_secure_required") boolean requireThreeDSecure, Callback<Transaction> callback);
 
Example #24
Source File: ListUserapklikesRequest.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST(WebserviceOptions.WebServicesLink+"3/listUserApkInstallLikes")
@FormUrlEncoded
public ListapklikesJson run(@FieldMap HashMap<String, String> args);
 
Example #25
Source File: ServerAPI.java    From FlowGeek with GNU General Public License v2.0 4 votes vote down vote up
@FormUrlEncoded
@POST("/action/api/tweet_delete")
Call<RespResult> deleteTweet(
        @Field("uid") long uid,
        @Field("tweetid") long tid
);
 
Example #26
Source File: DexcomShare.java    From xDrip with GNU General Public License v3.0 4 votes vote down vote up
@POST("Publisher/PostReceiverEgvRecords")
Call<ResponseBody> uploadBGRecords(@Query("sessionId") String sessionId, @Body ShareUploadPayload payload);
 
Example #27
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/services/webhook/{id}")
Observable<Object> feedback(@Path("id") String id, @Body FeedbackRequestData data);
 
Example #28
Source File: GetUserRepoSubscriptions.java    From aptoide-client with GNU General Public License v2.0 4 votes vote down vote up
@POST("/webservices.aptoide.com/webservices/3/getUserRepoSubscription")
@FormUrlEncoded
GetUserRepoSubscriptionJson getUserRepos(@FieldMap HashMap<String, String> args);
 
Example #29
Source File: TalkApi.java    From talk-android with MIT License 4 votes vote down vote up
@POST("/rooms/{id}/join")
Observable<Room> joinRoom(@Path("id") String roomId);
 
Example #30
Source File: Version11xServerApi.java    From apiman-cli with Apache License 2.0 4 votes vote down vote up
@POST("/organizations/{orgName}/services/{serviceName}/versions")
Response createVersion(@Path("orgName") String orgName, @Path("serviceName") String serviceName, @Body ApiVersion apiVersion);