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
Show file 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 property

public $accessTokenMethod

$accessTokenUrl public property

public $accessTokenUrl

$apiBaseUrl public property

public $apiBaseUrl

$attributeParams public 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 property

public $authUrl

$requestTokenMethod public property

public $requestTokenMethod

$requestTokenUrl public property

public $requestTokenUrl