summaryrefslogtreecommitdiffstats
path: root/examples/transmission/get_all_transmissions.php
diff options
context:
space:
mode:
authorbeardyman <nornholdj@gmail.com>2015-09-16 23:25:03 -0400
committerbeardyman <nornholdj@gmail.com>2015-09-16 23:25:03 -0400
commitb51ce2d0a8fad2577c164e1ab1c8382b1ae23fae (patch)
tree0cfd23aff75b957b0beb7e88e4c0a544c5c107b5 /examples/transmission/get_all_transmissions.php
parent0c4b276fd3c51e938474071fcde5b294a7651256 (diff)
downloadphp-sparkpost-b51ce2d0a8fad2577c164e1ab1c8382b1ae23fae.zip
php-sparkpost-b51ce2d0a8fad2577c164e1ab1c8382b1ae23fae.tar.gz
php-sparkpost-b51ce2d0a8fad2577c164e1ab1c8382b1ae23fae.tar.bz2
finished code updates/refactoring updated examples and began refactoring tests
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();