本文整理汇总了PHP中OAuth\OAuth2\Service\AbstractService::request方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractService::request方法的具体用法?PHP AbstractService::request怎么用?PHP AbstractService::request使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OAuth\OAuth2\Service\AbstractService
的用法示例。
在下文中一共展示了AbstractService::request方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: request
/**
* {@inheritdoc}
*/
public function request($path, $method = 'GET', $body = null, array $extraHeaders = array())
{
if (is_null($this->baseApiUri)) {
$this->setBaseApiUri($this->storage->retrieveAccessToken($this->service()));
}
return parent::request($path, $method, $body, $extraHeaders);
}
示例2: request
public function request($path, $method = 'GET', $body = null, array $extraHeaders = array())
{
$params = ['oauth_token' => 'qyprd3VVTi05a8Ukbv2DNO2Z2CP1CwflHHrGUiAOyPMQ1CTB', 'oauth_nonce' => $this->_nonce(), 'oauth_consumer_key' => $this->credentials->getConsumerId(), 'oauth_signature_method' => 'HMAC-SHA1', 'oauth_timestamp' => time(), 'oauth_version' => '1.0'];
$responseBody = $this->httpClient->retrieveResponse(new Uri(\Config::get('intuit.url') . $path), $params, $extraHeaders);
dd($responseBody);
array_walk($params, function (&$val, &$key) {
$key = strtolower($key);
$val = strtolower($key) . '=' . $val;
});
return parent::request($path, $method, $body, $extraHeaders);
}
示例3: request
/**
* {@inheritdoc}
*/
public function request($path, $method = 'GET', $body = null, array $extraHeaders = array())
{
$uri = new Uri($this->baseApiUri . $path);
$uri->addToQuery('v', $this->apiVersionDate);
return parent::request($uri, $method, $body, $extraHeaders);
}
示例4: request
/**
* {@inheritdoc}
*/
public function request($path, array $body = [], $method = 'GET', array $extraHeaders = [])
{
$uri = $this->determineRequestUriFromPath($path);
$uri->getQuery()->modify(['v' => $this->apiVersionDate]);
return parent::request($uri, $body, $method, $extraHeaders);
}
示例5: request
/**
* {@inheritdoc}
*/
public function request($path, $method = 'GET', $body = null, array $extraHeaders = array())
{
$uri = $this->determineRequestUriFromPath($path, $this->baseApiUri);
$uri->addToQuery('v', $this->apiVersionDate);
return parent::request($uri, $method, $body, $extraHeaders);
}