PHP Class Overtrue\Socialite\Providers\WeiboProvider

Inheritance: extends AbstractProvider, implements Overtrue\Socialite\ProviderInterface
Afficher le fichier Open project: overtrue/socialite

Protected Properties

Свойство Type Description
$baseUrl string The base url of Weibo API.
$scopes array The scopes being requested.
$uid integer The uid of user authorized.
$version string The API version for the request.

Méthodes protégées

Méthode Description
getAuthUrl ( string $state ) : string Get the authentication URL for the provider.
getTokenFields ( string $code ) : array Get the Post fields for the token request.
getTokenUrl ( ) : string Get the token URL for the provider.
getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) : array Get the raw user for the given access token.
mapUserToObject ( array $user ) : Overtrue\Socialite\User Map the raw user array to a Socialite User instance.

Method Details

getAuthUrl() protected méthode

Get the authentication URL for the provider.
protected getAuthUrl ( string $state ) : string
$state string
Résultat string

getTokenFields() protected méthode

Get the Post fields for the token request.
protected getTokenFields ( string $code ) : array
$code string
Résultat array

getTokenUrl() protected méthode

Get the token URL for the provider.
protected getTokenUrl ( ) : string
Résultat string

getUserByToken() protected méthode

Get the raw user for the given access token.
protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) : array
$token Overtrue\Socialite\AccessTokenInterface
Résultat array

mapUserToObject() protected méthode

Map the raw user array to a Socialite User instance.
protected mapUserToObject ( array $user ) : Overtrue\Socialite\User
$user array
Résultat Overtrue\Socialite\User

Property Details

$baseUrl protected_oe property

The base url of Weibo API.
protected string $baseUrl
Résultat string

$scopes protected_oe property

The scopes being requested.
protected array $scopes
Résultat array

$uid protected_oe property

The uid of user authorized.
protected int $uid
Résultat integer

$version protected_oe property

The API version for the request.
protected string $version
Résultat string