diff options
Diffstat (limited to 'examples/transmission/get_all_transmissions.php')
-rw-r--r-- | examples/transmission/get_all_transmissions.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/transmission/get_all_transmissions.php b/examples/transmission/get_all_transmissions.php index db06b68..2005a75 100644 --- a/examples/transmission/get_all_transmissions.php +++ b/examples/transmission/get_all_transmissions.php @@ -4,14 +4,19 @@ require_once (dirname(__FILE__).'/../bootstrap.php'); use SparkPost\SparkPost; use SparkPost\Transmission; +use GuzzleHttp\Client; +use Ivory\HttpAdapter\Guzzle6HttpAdapter; -$key = 'YOURAPIKEY'; -SparkPost::setConfig(array('key'=>$key)); +$key = 'YOURAPIKEY'; +$httpAdapter = new Guzzle6HttpAdapter(new Client()); +SparkPost::setConfig($httpAdapter, ['key'=>$key]); try { $results = Transmission::all(); + echo "it returned!!!"; + var_dump($results); echo 'Congrats you can use your SDK!'; } catch (\Exception $exception) { echo $exception->getMessage(); } -?>
\ No newline at end of file +?> |