You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: