PHP Class Overtrue\Socialite\Providers\QQProvider

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

Protected Properties

Свойство Type Description
$baseUrl string The base url of QQ API.
$openId string User openid.
$scopes array The scopes being requested.
$uid integer The uid of user authorized.
$unionId string User unionid.
$withUnionId boolean get token(openid) with unionid.

Méthodes publiques

Méthode Description
getAccessToken ( string $code ) : AccessToken Get the access token for the given code.
parseAccessToken ( string $body ) : AccessToken Get the access token from the token response body.
withUnionId ( ) : self

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.
removeCallback ( string $response ) : string Remove the fucking callback parentheses.

Method Details

getAccessToken() public méthode

Get the access token for the given code.
public getAccessToken ( string $code ) : AccessToken
$code string
Résultat Overtrue\Socialite\AccessToken

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

parseAccessToken() public méthode

Get the access token from the token response body.
public parseAccessToken ( string $body ) : AccessToken
$body string
Résultat Overtrue\Socialite\AccessToken

removeCallback() protected méthode

Remove the fucking callback parentheses.
protected removeCallback ( string $response ) : string
$response string
Résultat string

withUnionId() public méthode

public withUnionId ( ) : self
Résultat self

Property Details

$baseUrl protected_oe property

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

$openId protected_oe property

User openid.
protected string $openId
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

$unionId protected_oe property

User unionid.
protected string $unionId
Résultat string

$withUnionId protected_oe property

get token(openid) with unionid.
protected bool $withUnionId
Résultat boolean