summaryrefslogtreecommitdiffstats
path: root/examples/transmission/get_all_transmissions.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/transmission/get_all_transmissions.php')
-rw-r--r--examples/transmission/get_all_transmissions.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/transmission/get_all_transmissions.php b/examples/transmission/get_all_transmissions.php
index 54cb376..1e1882b 100644
--- a/examples/transmission/get_all_transmissions.php
+++ b/examples/transmission/get_all_transmissions.php
@@ -7,13 +7,12 @@ use SparkPost\Transmission;
use GuzzleHttp\Client;
use Ivory\HttpAdapter\Guzzle6HttpAdapter;
-$key = 'YOURAPIKEY';
+$key = 'YOUR API KEY';
$httpAdapter = new Guzzle6HttpAdapter(new Client());
-SparkPost::setConfig($httpAdapter, ['key'=>$key]);
+SparkPost::configure($httpAdapter, ['key'=>$key]);
try {
$results = Transmission::all();
- var_dump($results);
echo 'Congrats you can use your SDK!';
} catch (\Exception $exception) {
echo $exception->getMessage();