diff --git a/examples/unwrapped/get_webhooks.php b/examples/unwrapped/get_webhooks.php index e149b21..90f7a9c 100644 --- a/examples/unwrapped/get_webhooks.php +++ b/examples/unwrapped/get_webhooks.php @@ -22,5 +22,7 @@ echo 'Congrats! You got a list of all your webhooks from SparkPost!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getAPIMessage()."\n"; + echo $exception->getAPICode()."\n"; + echo $exception->getAPIDescription()."\n"; }