PHP Class Overtrue\Socialite\Providers\WeChatProvider

Inheritance: extends AbstractProvider, implements Overtrue\Socialite\ProviderInterface
Mostra file Open project: overtrue/socialite Class Usage Examples

Protected Properties

Property Type Description
$baseUrl string The base url of WeChat API.
$openId {@inheritdoc}.
$scopes {@inheritdoc}.
$stateless boolean Indicates if the session state should be utilized.

Public Methods

Method Description
getAccessToken ( $code ) {@inheritdoc}.

Protected Methods

Method Description
buildAuthUrlFromBase ( $url, $state ) {@inheritdoc}.
getAuthUrl ( $state ) {@inheritdoc}.
getCodeFields ( $state = null ) {@inheritdoc}.
getTokenFields ( $code ) {@inheritdoc}.
getTokenUrl ( ) {@inheritdoc}.
getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token ) {@inheritdoc}.
isOpenPlatform ( ) : mixed Detect wechat open platform.
mapUserToObject ( array $user ) {@inheritdoc}.
removeCallback ( mixed $response ) : string Remove the fucking callback parentheses.

Method Details

buildAuthUrlFromBase() protected method

{@inheritdoc}.
protected buildAuthUrlFromBase ( $url, $state )

getAccessToken() public method

{@inheritdoc}.
public getAccessToken ( $code )

getAuthUrl() protected method

{@inheritdoc}.
protected getAuthUrl ( $state )

getCodeFields() protected method

{@inheritdoc}.
protected getCodeFields ( $state = null )

getTokenFields() protected method

{@inheritdoc}.
protected getTokenFields ( $code )

getTokenUrl() protected method

{@inheritdoc}.
protected getTokenUrl ( )

getUserByToken() protected method

{@inheritdoc}.
protected getUserByToken ( Overtrue\Socialite\AccessTokenInterface $token )
$token Overtrue\Socialite\AccessTokenInterface

isOpenPlatform() protected method

Detect wechat open platform.
protected isOpenPlatform ( ) : mixed
return mixed

mapUserToObject() protected method

{@inheritdoc}.
protected mapUserToObject ( array $user )
$user array

removeCallback() protected method

Remove the fucking callback parentheses.
protected removeCallback ( mixed $response ) : string
$response mixed
return string

Property Details

$baseUrl protected_oe property

The base url of WeChat API.
protected string $baseUrl
return string

$openId protected_oe property

{@inheritdoc}.
protected $openId

$scopes protected_oe property

{@inheritdoc}.
protected $scopes

$stateless protected_oe property

Indicates if the session state should be utilized.
protected bool $stateless
return boolean