Property | Type | Description | |
---|---|---|---|
$responseCode |
Method | Description | |
---|---|---|
__construct ( string $clientId, string $clientSecret, string $redirectUrl ) | Class constructor. | |
getAccessToken ( string $authCode ) : string | Converts an authorization code into an access token via a call to the asana servers. | |
getAuthorizeUrl ( ) : string | Returns the url for the authorization. | |
getData ( ) : object | Decodes the response and returns as an object. | |
hasError ( ) : boolean | Checks for errors in the response. | |
refreshAccessToken ( string $refreshToken ) : string | Ask asana to refresh the token with a new one. |
Method | Description | |
---|---|---|
askAsana ( string $action, string $token ) : string | This function communicates with Asana REST API. |
public getAccessToken ( string $authCode ) : string | ||
$authCode | string | The authorization code provided via asana after the proper authorization. |
return | string | JSON or null. |
public getAuthorizeUrl ( ) : string | ||
return | string | The authorization url. |
public refreshAccessToken ( string $refreshToken ) : string | ||
$refreshToken | string | The refresh token provided by asana on getting the access token. |
return | string | JSON or null. |