Open fmdataweb opened 3 years ago
This is not an issue but a support call. Please redirect
However, to guide you, use a try catch
try {
... your code
} catch (\League\OAuth2\Client\Provider\Exception\IdentityProviderException $e) {
// Failed to get the access token or user details.
exit($e->getMessage());
}
Is there a way to check for any errors with the actual Xero API request (e.g. the GET Organisation request on line 75 of the index.php file):
I would like to add in some error checking to see if this request was successful and returned a 200 response (and not a 400 etc) - is there an built in way to do this?