Skip to content

Commit

Permalink
Merge pull request #9 from upwork/v1.2.1
Browse files Browse the repository at this point in the history
v1.2.1
  • Loading branch information
mnovozhylov committed Jul 8, 2016
2 parents 5031983 + c75b841 commit 746599f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .docgen
Original file line number Diff line number Diff line change
@@ -1 +1 @@
apigen -s src/ -d docs_html
apigen generate -s src/ -d docs_html
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.1
* Bug fixes in Messages and Submissions API

## 1.2.0
* Added Messages API (new)
* Message API (V1) is now fully depricated
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "upwork/php-upwork",
"description": "PHP bindings for Upwork API",
"version": "v1.2.0",
"version": "v1.2.1",
"type": "library",
"keywords": ["upwork", "php", "api"],
"homepage": "http://www.upwork.com",
"time": "2016-06-13",
"time": "2016-07-08",
"license": "Apache-2.0",
"authors": [
{
Expand Down
Binary file modified docs/docs.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Upwork/API/Routers/Hr/Submissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function reject($submissionId, $params)
{
ApiDebug::p(__FUNCTION__);

$response = $this->_client->delete('/hr/v3/fp/submissions/' . $submissionId . '/reject', $params);
$response = $this->_client->put('/hr/v3/fp/submissions/' . $submissionId . '/reject', $params);
ApiDebug::p('found response info', $response);

return $response;
Expand Down
5 changes: 3 additions & 2 deletions src/Upwork/API/Routers/Messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ public function getRooms($company, $params = array())
* Get a specific room information
*
* @param string $company Company ID
* @param string $roomId Room ID
* @param array $params List of parameters
* @access public
* @return object
*/
public function getRoomDetails($company, $params = array())
public function getRoomDetails($company, $roomId, $params = array())
{
ApiDebug::p(__FUNCTION__);

$response = $this->_client->get('/messages/v3/' . $company . '/rooms', $params);
$response = $this->_client->get('/messages/v3/' . $company . '/rooms/' . $roomId, $params);
ApiDebug::p('received data', $response);

return $response;
Expand Down

0 comments on commit 746599f

Please sign in to comment.