diff --git a/CHANGES.md b/CHANGES.md index ed1d282..ba4510f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ # Release History +## 1.2.2 +* Fix wrong method usage in updateRoomSettings and updateRoomMetadata + ## 1.2.1 * Applications API has moved from v3 to v4 diff --git a/example-android/app/libs/java-upwork.jar b/example-android/app/libs/java-upwork.jar index 12f9008..730445f 100644 Binary files a/example-android/app/libs/java-upwork.jar and b/example-android/app/libs/java-upwork.jar differ diff --git a/lib/java-upwork.jar b/lib/java-upwork.jar index 12f9008..730445f 100644 Binary files a/lib/java-upwork.jar and b/lib/java-upwork.jar differ diff --git a/pom.xml b/pom.xml index 3e22147..ad9acf9 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.Upwork api - 1.2.1 + 1.2.2 jar java-upwork JAVA bindings for Upwork API diff --git a/src/com/Upwork/api/Routers/Messages.java b/src/com/Upwork/api/Routers/Messages.java index 07e9785..bd9034e 100644 --- a/src/com/Upwork/api/Routers/Messages.java +++ b/src/com/Upwork/api/Routers/Messages.java @@ -138,7 +138,7 @@ public JSONObject sendMessageToRoom(String company, String roomId, HashMap params) throws JSONException { - return oClient.get("/messages/v3/" + company + "/rooms/" + roomId + "/users/" + username, params); + return oClient.put("/messages/v3/" + company + "/rooms/" + roomId + "/users/" + username, params); } /** @@ -151,7 +151,7 @@ public JSONObject updateRoomSettings(String company, String roomId, String usern * @return {@link JSONObject} */ public JSONObject updateRoomMetadata(String company, String roomId, HashMap params) throws JSONException { - return oClient.get("/messages/v3/" + company + "/rooms/" + roomId, params); + return oClient.put("/messages/v3/" + company + "/rooms/" + roomId, params); } }