Skip to content

Commit

Permalink
Merge pull request #8 from upwork/v1.2.0
Browse files Browse the repository at this point in the history
v1.2.0
  • Loading branch information
mnovozhylov committed Jun 14, 2016
2 parents 6fec0c1 + 9bb7a1b commit 5031983
Show file tree
Hide file tree
Showing 9 changed files with 332 additions and 331 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 1.2.0
* Added Messages API (new)
* Message API (V1) is now fully depricated

## 1.1.1
* Add optional parameter to support pagination in getTrayByType

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ These are the supported API resources:
* Job and Freelancer Profile
* Search Jobs and Freelancers
* Organization
* MC
* Messages
* Time and Financial Reporting
* Metadata
* Snapshot
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.1.0",
"version": "v1.2.0",
"type": "library",
"keywords": ["upwork", "php", "api"],
"homepage": "http://www.upwork.com",
"time": "2015-10-12",
"time": "2016-06-13",
"license": "Apache-2.0",
"authors": [
{
Expand Down
16 changes: 0 additions & 16 deletions example/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,8 @@
// array('access_token' => ..., 'access_secret' => ...);
// keeps the access token in a secure place

// gets a list of trays for the authenticated user
$mc = new \Upwork\API\Routers\Mc($client);
$trays = $mc->getTrays();

print_r($trays);

// gets info of the authenticated user
$auth = new \Upwork\API\Routers\Auth($client);
$info = $auth->getUserInfo();

print_r($info);

// attempts to start a new message thread with wrong parameters
// to test an error response from the server (the subject is missing)
$params = array(
'recipients' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'body' => 'this is a test message from Upwork Library'
);
$newThread = $mc->startNewThread('myuseruid', $params);

print_r($newThread);
16 changes: 0 additions & 16 deletions example/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,9 @@
unset($_SESSION['request_token']);
unset($_SESSION['request_secret']);

// gets a list of trays for the authenticated user
$mc = new \Upwork\API\Routers\Mc($client);
$trays = $mc->getTrays();

print_r($trays);

// gets info of the authenticated user
$auth = new \Upwork\API\Routers\Auth($client);
$info = $auth->getUserInfo();

print_r($info);

// attempts to start a new message thread with wrong parameters
// to test an error response from the server (the subject is missing)
$params = array(
'recipients' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'body' => 'this is a test message from Upwork Library'
);
$newThread = $mc->startNewThread('myuseruid', $params);

print_r($newThread);
}
193 changes: 0 additions & 193 deletions src/Upwork/API/Routers/Mc.php

This file was deleted.

Loading

0 comments on commit 5031983

Please sign in to comment.