PHPMailer\PHPMailer
OAuth::__construct
OAuth constructor.
Method of the class: OAuth{}
No Hooks.
Returns
null. Nothing (null).
Usage
$OAuth = new OAuth(); $OAuth->__construct( $options );
- $options(array) (required)
- Associative array containing
provider,userName,clientSecret,clientIdandrefreshTokenelements.
OAuth::__construct() OAuth:: construct code WP 6.9
public function __construct($options)
{
$this->provider = $options['provider'];
$this->oauthUserEmail = $options['userName'];
$this->oauthClientSecret = $options['clientSecret'];
$this->oauthClientId = $options['clientId'];
$this->oauthRefreshToken = $options['refreshToken'];
}