本文整理汇总了PHP中HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\GenericOAuth2ResourceOwner::doGetUserInformationRequest方法的典型用法代码示例。如果您正苦于以下问题:PHP GenericOAuth2ResourceOwner::doGetUserInformationRequest方法的具体用法?PHP GenericOAuth2ResourceOwner::doGetUserInformationRequest怎么用?PHP GenericOAuth2ResourceOwner::doGetUserInformationRequest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\GenericOAuth2ResourceOwner
的用法示例。
在下文中一共展示了GenericOAuth2ResourceOwner::doGetUserInformationRequest方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doGetUserInformationRequest
/**
* {@inheritDoc}
*/
protected function doGetUserInformationRequest($url, array $parameters = array())
{
/* DISQUS requires api key and secret for user information requests */
$url = $this->normalizeUrl($url, array('api_key' => $this->options['client_id'], 'api_secret' => $this->options['client_secret']));
return parent::doGetUserInformationRequest($url, $parameters);
}
示例2: doGetUserInformationRequest
/**
* {@inheritDoc}
*/
protected function doGetUserInformationRequest($url, array $parameters = array())
{
// LinkedIn uses different variable as they still support OAuth1.0a
return parent::doGetUserInformationRequest(str_replace('access_token', 'oauth2_access_token', $url), $parameters);
}