PHP Класс Overtrue\Socialite\Providers\QQProvider

Наследование: extends AbstractProvider, implements Overtrue\Socialite\ProviderInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Описание методов

getAccessToken() публичный Метод

Get the access token for the given code.
public getAccessToken ( string $code ) : AccessToken
$code string
Результат Overtrue\Socialite\AccessToken

getAuthUrl() защищенный Метод

Get the authentication URL for the provider.
protected getAuthUrl ( string $state ) : string
$state string
Результат string

getTokenFields() защищенный Метод

Get the Post fields for the token request.
protected getTokenFields ( string $code ) : array
$code string
Результат array

getTokenUrl() защищенный Метод

Get the token URL for the provider.
protected getTokenUrl ( ) : string
Результат string

getUserByToken() защищенный Метод

Get the raw user for the given access token.
protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) : array
$token Overtrue\Socialite\AccessTokenInterface
Результат array

mapUserToObject() защищенный Метод

Map the raw user array to a Socialite User instance.
protected mapUserToObject ( array $user ) : Overtrue\Socialite\User
$user array
Результат Overtrue\Socialite\User

parseAccessToken() публичный Метод

Get the access token from the token response body.
public parseAccessToken ( string $body ) : AccessToken
$body string
Результат Overtrue\Socialite\AccessToken

removeCallback() защищенный Метод

Remove the fucking callback parentheses.
protected removeCallback ( string $response ) : string
$response string
Результат string

withUnionId() публичный Метод

public withUnionId ( ) : self
Результат self

Описание свойств

$baseUrl защищенное свойство

The base url of QQ API.
protected string $baseUrl
Результат string

$openId защищенное свойство

User openid.
protected string $openId
Результат string

$scopes защищенное свойство

The scopes being requested.
protected array $scopes
Результат array

$uid защищенное свойство

The uid of user authorized.
protected int $uid
Результат integer

$unionId защищенное свойство

User unionid.
protected string $unionId
Результат string

$withUnionId защищенное свойство

get token(openid) with unionid.
protected bool $withUnionId
Результат boolean