46 $this->oauthClientId = $ClientId;
47 $this->oauthClientSecret = $ClientSecret;
48 $this->oauthRefreshToken = $RefreshToken;
49 $this->oauthUserEmail = $UserEmail;
55 'clientId' => $this->oauthClientId,
56 'clientSecret' => $this->oauthClientSecret
62 return new \League\OAuth2\Client\Grant\RefreshToken();
69 return $provider->getAccessToken($grant, [
'refresh_token' => $this->oauthRefreshToken]);
75 return base64_encode(
"user=" . $this->oauthUserEmail .
"\001auth=Bearer " . $token .
"\001\001");
__construct( $UserEmail, $ClientSecret, $ClientId, $RefreshToken)