Skip to content

Commit 5031983

Browse files
authored
Merge pull request #8 from upwork/v1.2.0
v1.2.0
2 parents 6fec0c1 + 9bb7a1b commit 5031983

File tree

9 files changed

+332
-331
lines changed

9 files changed

+332
-331
lines changed

CHANGES.md

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

3+
## 1.2.0
4+
* Added Messages API (new)
5+
* Message API (V1) is now fully depricated
6+
37
## 1.1.1
48
* Add optional parameter to support pagination in getTrayByType
59

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ These are the supported API resources:
2121
* Job and Freelancer Profile
2222
* Search Jobs and Freelancers
2323
* Organization
24-
* MC
24+
* Messages
2525
* Time and Financial Reporting
2626
* Metadata
2727
* Snapshot

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.1.0",
4+
"version": "v1.2.0",
55
"type": "library",
66
"keywords": ["upwork", "php", "api"],
77
"homepage": "http://www.upwork.com",
8-
"time": "2015-10-12",
8+
"time": "2016-06-13",
99
"license": "Apache-2.0",
1010
"authors": [
1111
{

example/console.php

-16
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,8 @@
3535
// array('access_token' => ..., 'access_secret' => ...);
3636
// keeps the access token in a secure place
3737

38-
// gets a list of trays for the authenticated user
39-
$mc = new \Upwork\API\Routers\Mc($client);
40-
$trays = $mc->getTrays();
41-
42-
print_r($trays);
43-
4438
// gets info of the authenticated user
4539
$auth = new \Upwork\API\Routers\Auth($client);
4640
$info = $auth->getUserInfo();
4741

4842
print_r($info);
49-
50-
// attempts to start a new message thread with wrong parameters
51-
// to test an error response from the server (the subject is missing)
52-
$params = array(
53-
'recipients' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
54-
'body' => 'this is a test message from Upwork Library'
55-
);
56-
$newThread = $mc->startNewThread('myuseruid', $params);
57-
58-
print_r($newThread);

example/web.php

-16
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,9 @@
5858
unset($_SESSION['request_token']);
5959
unset($_SESSION['request_secret']);
6060

61-
// gets a list of trays for the authenticated user
62-
$mc = new \Upwork\API\Routers\Mc($client);
63-
$trays = $mc->getTrays();
64-
65-
print_r($trays);
66-
6761
// gets info of the authenticated user
6862
$auth = new \Upwork\API\Routers\Auth($client);
6963
$info = $auth->getUserInfo();
7064

7165
print_r($info);
72-
73-
// attempts to start a new message thread with wrong parameters
74-
// to test an error response from the server (the subject is missing)
75-
$params = array(
76-
'recipients' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
77-
'body' => 'this is a test message from Upwork Library'
78-
);
79-
$newThread = $mc->startNewThread('myuseruid', $params);
80-
81-
print_r($newThread);
8266
}

src/Upwork/API/Routers/Mc.php

-193
This file was deleted.

0 commit comments

Comments
 (0)