diff options
author | nornholdj <nornholdj@gmail.com> | 2014-10-28 17:36:58 -0400 |
---|---|---|
committer | nornholdj <nornholdj@gmail.com> | 2014-10-28 17:36:58 -0400 |
commit | e8e8cabb77bdf994a78f3f3a66ae3bdeb2da3d48 (patch) | |
tree | dfc0587d65e535a4af43df659ad793ee79106a15 /examples/transmission/get_all_transmissions.php | |
parent | c004fdc8fd6140d0074000ae112e7d0ca70437c1 (diff) | |
download | php-sparkpost-e8e8cabb77bdf994a78f3f3a66ae3bdeb2da3d48.zip php-sparkpost-e8e8cabb77bdf994a78f3f3a66ae3bdeb2da3d48.tar.gz php-sparkpost-e8e8cabb77bdf994a78f3f3a66ae3bdeb2da3d48.tar.bz2 |
MA-946 #time 10h Updated examples and tested. Updated Documentation. Setup composer inclusion testing.
Diffstat (limited to 'examples/transmission/get_all_transmissions.php')
-rw-r--r-- | examples/transmission/get_all_transmissions.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/transmission/get_all_transmissions.php b/examples/transmission/get_all_transmissions.php new file mode 100644 index 0000000..9ffc2fd --- /dev/null +++ b/examples/transmission/get_all_transmissions.php @@ -0,0 +1,18 @@ +<?php +namespace Examples\Transmisson; + require_once (dirname(__FILE__).'/../bootstrap.php'); + + use SparkPost\SparkPost; + + $key = 'YOURAPIKEY'; + $sdk = new SparkPost(['key'=>$key]); + + $transmission = $sdk->Transmission(); + + try { + $results = $transmission->all(); + echo 'Congrats you can use your SDK!'; + } catch (\Exception $exception) { + echo $exception->getMessage(); + } +?>
\ No newline at end of file |