Skip to content

Commit

Permalink
Merge pull request #11 from jcroll/updateDeps
Browse files Browse the repository at this point in the history
[RFC] Update Guzzle Dependency
  • Loading branch information
jcroll authored Aug 25, 2016
2 parents e46d192 + 02f5384 commit a768c71
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"guzzle/guzzle": "~3.7"
"guzzlehttp/guzzle": "~3.8"
},
"autoload": {
"psr-0": {
Expand Down
171 changes: 171 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions lib/Jcroll/FoursquareApiClient/Client/FoursquareClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
namespace Jcroll\FoursquareApiClient\Client;

use Guzzle\Common\Collection;
use Guzzle\Plugin\Oauth\OauthPlugin;
use Guzzle\Service\Client;
use Guzzle\Service\Description\ServiceDescription;
use Guzzle\Service\Builder\ServiceBuilder;
use Guzzle\Common\Exception\InvalidArgumentException;

class FoursquareClient extends Client
{
/**
* {@inheritdoc}
*/
public static function factory($config = array())
{
$default = array('base_url' => 'https://api.foursquare.com/v2/');
Expand Down Expand Up @@ -41,6 +42,11 @@ public static function factory($config = array())
return $client;
}

/**
* @param string $token
*
* @return $this
*/
public function addToken($token)
{
$config = $this->getDefaultOption('query');
Expand Down

0 comments on commit a768c71

Please sign in to comment.