Property | Type | Description | |
---|---|---|---|
$AUTH_HANDLER | Default Auth Handler | ||
$CACHE_PATH | |||
$expiryBufferTime | integer | Private Variable |
Method | Description | |
---|---|---|
__construct ( string $clientId, string $clientSecret ) | Construct | |
decrypt ( $data ) : string | Helper method to decrypt data using clientSecret as key | |
encrypt ( $data ) : string | Helper method to encrypt data using clientSecret as key | |
getAccessToken ( $config ) : null | string | Get AccessToken | |
getClientId ( ) : string | Get Client ID | |
getClientSecret ( ) : string | Get Client Secret | |
getRefreshToken ( $config, $authorizationCode = null, array $params = [] ) : string | null | Get a Refresh Token from Authorization Code | |
updateAccessToken ( array $config, string | null $refreshToken = null ) : string | Updates Access Token based on given input |
Method | Description | |
---|---|---|
getToken ( array $config, string $clientId, string $clientSecret, string $payload ) : mixed | Retrieves the token based on the input configuration |
Method | Description | |
---|---|---|
generateAccessToken ( array $config, null | string $refreshToken = null ) : null | Generates a new access token |
public __construct ( string $clientId, string $clientSecret ) | ||
$clientId | string | client id obtained from the developer portal |
$clientSecret | string | client secret obtained from the developer portal |
public getAccessToken ( $config ) : null | string | ||
$config | ||
return | null | string |
public static int $expiryBufferTime | ||
return | integer |