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

Commit 483dd41

Browse files
authored
Merge pull request #19 from upwork/v1.3.2
Add Room Messages API
2 parents 493c0d7 + 566cac4 commit 483dd41

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

doc/java-upwork-javadoc.zip

81 Bytes
Binary file not shown.
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.3.1</version>
6+
<version>1.3.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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ public JSONObject getRoomDetails(String company, String roomId, HashMap<String,
6363
return oClient.get("/messages/v3/" + company + "/rooms/" + roomId, params);
6464
}
6565

66+
/**
67+
* Get messages from a specific room
68+
*
69+
* @param company Company ID
70+
* @param roomId Room ID
71+
* @param params Parameters
72+
* @throws JSONException If error occurred
73+
* @return {@link JSONObject}
74+
*/
75+
public JSONObject getRoomMessages(String company, String roomId, HashMap<String, String> params) throws JSONException {
76+
return oClient.get("/messages/v3/" + company + "/rooms/" + roomId + "/stories", params);
77+
}
78+
6679
/**
6780
* Get a specific room by offer ID
6881
*

0 commit comments

Comments
 (0)