PHP Class yii\authclient\clients\VKontakte

In order to use VKontakte OAuth you must register your application at . Example application configuration: ~~~ 'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'vkontakte' => [ 'class' => 'yii\authclient\clients\VKontakte', 'clientId' => 'vkontakte_client_id', 'clientSecret' => 'vkontakte_client_secret', ], ], ] ... ] ~~~
See also: http://vk.com/apps.php?act=add&site=1
See also: http://vk.com/developers.php?oid=-1&p=users.get
Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\authclient\OAuth2
ファイルを表示 Open project: yiisoft/yii2-authclient Class Usage Examples

Public Properties

Property Type Description
$apiBaseUrl
$attributeNames list of attribute names, which should be requested from API to initialize user attributes.
$authUrl
$tokenUrl

Public Methods

Method Description
applyAccessTokenToRequest ( $request, $accessToken )

Protected Methods

Method Description
defaultName ( )
defaultNormalizeUserAttributeMap ( )
defaultTitle ( )
initUserAttributes ( )

Method Details

applyAccessTokenToRequest() public method

public applyAccessTokenToRequest ( $request, $accessToken )

defaultName() protected method

protected defaultName ( )

defaultNormalizeUserAttributeMap() protected method

defaultTitle() protected method

protected defaultTitle ( )

initUserAttributes() protected method

protected initUserAttributes ( )

Property Details

$apiBaseUrl public_oe property

public $apiBaseUrl

$attributeNames public_oe property

list of attribute names, which should be requested from API to initialize user attributes.
Since: 2.0.4
public $attributeNames

$authUrl public_oe property

public $authUrl

$tokenUrl public_oe property

public $tokenUrl