Skip to content

Commit 746599f

Browse files
authored
Merge pull request #9 from upwork/v1.2.1
v1.2.1
2 parents 5031983 + c75b841 commit 746599f

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

.docgen

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
apigen -s src/ -d docs_html
1+
apigen generate -s src/ -d docs_html

CHANGES.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Release History
22

3+
## 1.2.1
4+
* Bug fixes in Messages and Submissions API
5+
36
## 1.2.0
47
* Added Messages API (new)
58
* Message API (V1) is now fully depricated

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "upwork/php-upwork",
33
"description": "PHP bindings for Upwork API",
4-
"version": "v1.2.0",
4+
"version": "v1.2.1",
55
"type": "library",
66
"keywords": ["upwork", "php", "api"],
77
"homepage": "http://www.upwork.com",
8-
"time": "2016-06-13",
8+
"time": "2016-07-08",
99
"license": "Apache-2.0",
1010
"authors": [
1111
{

docs/docs.zip

16.9 KB
Binary file not shown.

src/Upwork/API/Routers/Hr/Submissions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function reject($submissionId, $params)
8686
{
8787
ApiDebug::p(__FUNCTION__);
8888

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

9292
return $response;

src/Upwork/API/Routers/Messages.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,16 @@ public function getRooms($company, $params = array())
6262
* Get a specific room information
6363
*
6464
* @param string $company Company ID
65+
* @param string $roomId Room ID
6566
* @param array $params List of parameters
6667
* @access public
6768
* @return object
6869
*/
69-
public function getRoomDetails($company, $params = array())
70+
public function getRoomDetails($company, $roomId, $params = array())
7071
{
7172
ApiDebug::p(__FUNCTION__);
7273

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

7677
return $response;

0 commit comments

Comments
 (0)