Skip to content

Commit

Permalink
Merge pull request #19 from upwork/v1.3.2
Browse files Browse the repository at this point in the history
Add Room Messages API
  • Loading branch information
mnovozhylov authored May 8, 2020
2 parents 493c0d7 + 566cac4 commit 483dd41
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
Binary file modified doc/java-upwork-javadoc.zip
Binary file not shown.
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.3.1</version>
<version>1.3.2</version>
<packaging>jar</packaging>
<name>java-upwork</name>
<description>JAVA bindings for Upwork API</description>
Expand Down
13 changes: 13 additions & 0 deletions src/com/Upwork/api/Routers/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ public JSONObject getRoomDetails(String company, String roomId, HashMap<String,
return oClient.get("/messages/v3/" + company + "/rooms/" + roomId, params);
}

/**
* Get messages from a specific room
*
* @param company Company ID
* @param roomId Room ID
* @param params Parameters
* @throws JSONException If error occurred
* @return {@link JSONObject}
*/
public JSONObject getRoomMessages(String company, String roomId, HashMap<String, String> params) throws JSONException {
return oClient.get("/messages/v3/" + company + "/rooms/" + roomId + "/stories", params);
}

/**
* Get a specific room by offer ID
*
Expand Down

0 comments on commit 483dd41

Please sign in to comment.