PHP 클래스 PHPMailer\PHPMailer\OAuth

Uses the oauth2-client package from the League of Extraordinary Packages
저자: Marcus Bointon (Synchro/coolbru) ([email protected])
파일 보기 프로젝트 열기: nukeviet/nukeviet

보호된 프로퍼티들

프로퍼티 타입 설명
$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