Method | Description | |
---|---|---|
__construct ( string $clientId, string $clientSecret, string $redirectUri ) | Base constructor. | |
getAccessToken ( ) : string | Get access token. | |
getCertificate ( ) : string | Returns the path to certificate. | |
requestAccessToken ( string $tokenUrl ) : string | Requests the access token from the OAuth server. | |
setAccessToken ( string $accessToken ) : void | Set the access token. | |
setCertificate ( string $pathToCertificate ) : void | Set the certificate used by OAuth2 requests. |
public getAccessToken ( ) : string | ||
return | string | Access token. |
public getCertificate ( ) : string | ||
return | string | Path to certificate. |
public requestAccessToken ( string $tokenUrl ) : string | ||
$tokenUrl | string | Url to the page where we can get the access token. |
return | string | Access token. |
public setAccessToken ( string $accessToken ) : void | ||
$accessToken | string | Access token. |
return | void |
public setCertificate ( string $pathToCertificate ) : void | ||
$pathToCertificate | string | Absolute path to the certificate file. |
return | void |