diff options
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 |