PHP Class yii\authclient\clients\Twitter

In order to use Twitter OAuth you must register your application at . Example application configuration: php 'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'twitter' => [ 'class' => 'yii\authclient\clients\Twitter', 'attributeParams' => [ 'include_email' => 'true' ], 'consumerKey' => 'twitter_consumer_key', 'consumerSecret' => 'twitter_consumer_secret', ], ], ] ... ]
See also: https://dev.twitter.com/apps/new
See also: https://dev.twitter.com/docs/api
Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\authclient\OAuth1
Datei anzeigen Open project: yiisoft/yii2-authclient Class Usage Examples

Public Properties

Property Type Description
$accessTokenMethod
$accessTokenUrl
$apiBaseUrl
$attributeParams list of extra parameters, which should be used, while requesting user attributes from Twitter API. For example: php [ 'include_email' => 'true' ]
$authUrl
$requestTokenMethod
$requestTokenUrl

Protected Methods

Method Description
defaultName ( )
defaultTitle ( )
initUserAttributes ( )

Method Details

defaultName() protected method

protected defaultName ( )

defaultTitle() protected method

protected defaultTitle ( )

initUserAttributes() protected method

protected initUserAttributes ( )

Property Details

$accessTokenMethod public_oe property

public $accessTokenMethod

$accessTokenUrl public_oe property

public $accessTokenUrl

$apiBaseUrl public_oe property

public $apiBaseUrl

$attributeParams public_oe property

list of extra parameters, which should be used, while requesting user attributes from Twitter API. For example: php [ 'include_email' => 'true' ]
See also: https://dev.twitter.com/rest/reference/get/account/verify_credentials
Since: 2.0.6
public $attributeParams

$authUrl public_oe property

public $authUrl

$requestTokenMethod public_oe property

public $requestTokenMethod

$requestTokenUrl public_oe property

public $requestTokenUrl