-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to handle exception using Freshdesk API. #14
Comments
I had a similar issues and had to fork and modify the PHP SDK myself. Api.php peformRequestMethod add this in the catch :
Then pass that to the ApiException
Then modify the ApiException class to pass that error along in the __construct method. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try{
$tickets = Freshdesk::tickets()->all(['tag'=>'Lead']);
dd($tickets);
}catch(\Exception $e) {
echo $response = $e->getResponse();
its not showing error response ?
I am using Lumen and installed freshdesk sdk via composer
The text was updated successfully, but these errors were encountered: