summaryrefslogtreecommitdiffstats
path: root/examples/transmission/stored_template_send.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/transmission/stored_template_send.php')
-rw-r--r--examples/transmission/stored_template_send.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/transmission/stored_template_send.php b/examples/transmission/stored_template_send.php
index 82be209..3d52f0a 100644
--- a/examples/transmission/stored_template_send.php
+++ b/examples/transmission/stored_template_send.php
@@ -8,19 +8,19 @@ use Ivory\HttpAdapter\Guzzle6HttpAdapter;
$key = 'YOUR API KEY';
$httpAdapter = new Guzzle6HttpAdapter(new Client());
-SparkPost::configure($httpAdapter, ['key'=>$key]);
+$sparky = new SparkPost($httpAdapter, ['key'=>$key]);
try {
- $results = Transmission::send([
+ $results = $sparky->transmission->send([
"from"=>"From Envelope <from@sparkpostbox.com>",
"recipients"=>[
[
"address"=>[
"email"=>"john.doe@example.com"
- ]
+ ]
]
],
- "template"=>"my-template"
+ "template"=>"my-first-email"
]);
echo 'Congrats you can use your SDK!';
} catch (\Exception $exception) {