PHP Class PHPMailer\PHPMailer\OAuth

Uses the oauth2-client package from the League of Extraordinary Packages
Author: Marcus Bointon (Synchro/coolbru) ([email protected])
Afficher le fichier Open project: nukeviet/nukeviet

Protected Properties

Свойство Type Description
$oauthClientId string The client ID, generated in the app definition of the service you're connecting to.
$oauthClientSecret string The client secret, generated in the app definition of the service you're connecting to.
$oauthRefreshToken string The refresh token, used to obtain new AccessTokens.
$oauthToken League\OAuth2\Client\Token\AccessToken The current OAuth access token.
$oauthUserEmail string The user's email address, usually used as the login ID and also the from address when sending email.
$provider League\OAuth2\Client\Provider\AbstractProvider An instance of the League OAuth Client Provider.

Méthodes publiques

Méthode Description
__construct ( array $options ) OAuth constructor.
getOauth64 ( ) : string Generate a base64-encoded OAuth token.

Méthodes protégées

Méthode Description
getGrant ( ) : League\OAuth2\Client\Grant\RefreshToken Get a new RefreshToken.
getToken ( ) : League\OAuth2\Client\Token\AccessToken Get a new AccessToken.

Method Details

__construct() public méthode

OAuth constructor.
public __construct ( array $options )
$options array Associative array containing `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements

getGrant() protected méthode

Get a new RefreshToken.
protected getGrant ( ) : League\OAuth2\Client\Grant\RefreshToken
Résultat League\OAuth2\Client\Grant\RefreshToken

getOauth64() public méthode

Generate a base64-encoded OAuth token.
public getOauth64 ( ) : string
Résultat string

getToken() protected méthode

Get a new AccessToken.
protected getToken ( ) : League\OAuth2\Client\Token\AccessToken
Résultat League\OAuth2\Client\Token\AccessToken

Property Details

$oauthClientId protected_oe property

The client ID, generated in the app definition of the service you're connecting to.
protected string $oauthClientId
Résultat string

$oauthClientSecret protected_oe property

The client secret, generated in the app definition of the service you're connecting to.
protected string $oauthClientSecret
Résultat string

$oauthRefreshToken protected_oe property

The refresh token, used to obtain new AccessTokens.
protected string $oauthRefreshToken
Résultat string

$oauthToken protected_oe property

The current OAuth access token.
protected League\OAuth2\Client\Token\AccessToken $oauthToken
Résultat League\OAuth2\Client\Token\AccessToken

$oauthUserEmail protected_oe property

The user's email address, usually used as the login ID and also the from address when sending email.
protected string $oauthUserEmail
Résultat string

$provider protected_oe property

An instance of the League OAuth Client Provider.
protected League\OAuth2\Client\Provider\AbstractProvider $provider
Résultat League\OAuth2\Client\Provider\AbstractProvider