PHPMailer\PHPMailer

OAuth::__constructpublicWP 1.0

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, clientId and refreshToken elements.

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'];
}