protected function OAuth::getToken
Search API
5.x OAuth.php | protected OAuth::getToken() |
Get a new AccessToken.
Return value
AccessToken
1 call to OAuth::getToken()
- OAuth::getOauth64 in inc/
PHPMailer/ src/ OAuth.php - Generate a base64-encoded OAuth token.
File
- inc/
PHPMailer/ src/ OAuth.php, line 110
Class
- OAuth
- OAuth - OAuth2 authentication wrapper class. Uses the oauth2-client package from the League of Extraordinary Packages.
Namespace
PHPMailer\PHPMailerCode
protected function getToken()
{
return $this->provider->getAccessToken(
$this->getGrant(),
['refresh_token' => $this->oauthRefreshToken],
);
}