Skip to content

Commit

Permalink
Merge pull request #33 from upwork/v1.3.7
Browse files Browse the repository at this point in the history
v1.3.7
  • Loading branch information
mnovozhylov committed May 8, 2020
2 parents f3a87ce + 7f6bac4 commit 163998d
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 60 deletions.
16 changes: 16 additions & 0 deletions lib/routers/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,22 @@ exports.Messages.prototype.getRoomDetails = function(company, roomId, params, ca
this.api.client.get('messages/v3/' + company + '/rooms/' + roomId, params, callback);
}

/**
* Get messages from a specific room
*
* @method getRoomDetails
* @param company {String} Company ID
* @param roomId {String} Room ID
* @param params {Hash} Parameters
* @param callback {String} Callback function
* @async
*/
exports.Messages.prototype.getRoomMessages = function(company, roomId, params, callback) {
params = params || {};
debug('running request');
this.api.client.get('messages/v3/' + company + '/rooms/' + roomId + '/stories', params, callback);
}

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

0 comments on commit 163998d

Please sign in to comment.