예제 #1
0
 /**
  * Get OAuth client
  *
  * @param  array $oauthOptions
  * @param  null|string $uri
  * @param  null|array|\Traversable $config
  * @param  bool $excludeCustomParamsFromHeader
  * @return Client
  */
 public function getHttpClient(array $oauthOptions, $uri = null, $config = null, $excludeCustomParamsFromHeader = true)
 {
     $client = new Client($oauthOptions, $uri, $config, $excludeCustomParamsFromHeader);
     $client->setToken($this);
     return $client;
 }