Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit a4686f3

Browse files
authored
Merge pull request #12 from upwork/v1.2.2
v1.2.2
2 parents aa25114 + fd81216 commit a4686f3

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Release History
22

3+
## 1.2.2
4+
* Fix wrong method usage in updateRoomSettings and updateRoomMetadata
5+
36
## 1.2.1
47
* Applications API has moved from v3 to v4
58

0 Bytes
Binary file not shown.

lib/java-upwork.jar

0 Bytes
Binary file not shown.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>com.Upwork</groupId>
55
<artifactId>api</artifactId>
6-
<version>1.2.1</version>
6+
<version>1.2.2</version>
77
<packaging>jar</packaging>
88
<name>java-upwork</name>
99
<description>JAVA bindings for Upwork API</description>

src/com/Upwork/api/Routers/Messages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public JSONObject sendMessageToRoom(String company, String roomId, HashMap<Strin
138138
* @return {@link JSONObject}
139139
*/
140140
public JSONObject updateRoomSettings(String company, String roomId, String username, HashMap<String, String> params) throws JSONException {
141-
return oClient.get("/messages/v3/" + company + "/rooms/" + roomId + "/users/" + username, params);
141+
return oClient.put("/messages/v3/" + company + "/rooms/" + roomId + "/users/" + username, params);
142142
}
143143

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

157157
}

0 commit comments

Comments
 (0)