Skip to content

Commit

Permalink
Merge pull request #12 from upwork/v1.2.2
Browse files Browse the repository at this point in the history
v1.2.2
  • Loading branch information
mnovozhylov authored Jul 26, 2017
2 parents aa25114 + fd81216 commit a4686f3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Binary file modified example-android/app/libs/java-upwork.jar
Binary file not shown.
Binary file modified lib/java-upwork.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.Upwork</groupId>
<artifactId>api</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<packaging>jar</packaging>
<name>java-upwork</name>
<description>JAVA bindings for Upwork API</description>
Expand Down
4 changes: 2 additions & 2 deletions src/com/Upwork/api/Routers/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public JSONObject sendMessageToRoom(String company, String roomId, HashMap<Strin
* @return {@link JSONObject}
*/
public JSONObject updateRoomSettings(String company, String roomId, String username, HashMap<String, String> 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);
}

/**
Expand All @@ -151,7 +151,7 @@ public JSONObject updateRoomSettings(String company, String roomId, String usern
* @return {@link JSONObject}
*/
public JSONObject updateRoomMetadata(String company, String roomId, HashMap<String, String> params) throws JSONException {
return oClient.get("/messages/v3/" + company + "/rooms/" + roomId, params);
return oClient.put("/messages/v3/" + company + "/rooms/" + roomId, params);
}

}

0 comments on commit a4686f3

Please sign in to comment.