PHP Класс PHPMailer\PHPMailer\OAuth

Uses the oauth2-client package from the League of Extraordinary Packages
Автор: Marcus Bointon (Synchro/coolbru) ([email protected])
Показать файл Открыть проект

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

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

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

Метод Описание
__construct ( array $options ) OAuth constructor.
getOauth64 ( ) : string Generate a base64-encoded OAuth token.

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

Метод Описание
getGrant ( ) : League\OAuth2\Client\Grant\RefreshToken Get a new RefreshToken.
getToken ( ) : League\OAuth2\Client\Token\AccessToken Get a new AccessToken.

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

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

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

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

Get a new RefreshToken.
protected getGrant ( ) : League\OAuth2\Client\Grant\RefreshToken
Результат League\OAuth2\Client\Grant\RefreshToken

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

Generate a base64-encoded OAuth token.
public getOauth64 ( ) : string
Результат string

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

Get a new AccessToken.
protected getToken ( ) : League\OAuth2\Client\Token\AccessToken
Результат League\OAuth2\Client\Token\AccessToken

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

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

The client ID, generated in the app definition of the service you're connecting to.
protected string $oauthClientId
Результат string

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

The client secret, generated in the app definition of the service you're connecting to.
protected string $oauthClientSecret
Результат string

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

The refresh token, used to obtain new AccessTokens.
protected string $oauthRefreshToken
Результат string

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

The current OAuth access token.
protected League\OAuth2\Client\Token\AccessToken $oauthToken
Результат League\OAuth2\Client\Token\AccessToken

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

The user's email address, usually used as the login ID and also the from address when sending email.
protected string $oauthUserEmail
Результат string

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

An instance of the League OAuth Client Provider.
protected League\OAuth2\Client\Provider\AbstractProvider $provider
Результат League\OAuth2\Client\Provider\AbstractProvider