$config['api-key']]); try { $sparky->setupUnwrapped('webhooks'); $results = $sparky->webhooks->get(); echo 'Congrats! You got a list of all your webhooks from SparkPost!'; } catch (\Exception $exception) { echo $exception->getMessage(); } ?>