summaryrefslogtreecommitdiffstats
path: root/examples/templates
diff options
context:
space:
mode:
Diffstat (limited to 'examples/templates')
-rw-r--r--examples/templates/create_template.php12
-rw-r--r--examples/templates/preview_template.php4
-rw-r--r--examples/templates/update_template.php4
3 files changed, 10 insertions, 10 deletions
diff --git a/examples/templates/create_template.php b/examples/templates/create_template.php
index c25b900..826b076 100644
--- a/examples/templates/create_template.php
+++ b/examples/templates/create_template.php
@@ -16,12 +16,12 @@ $httpClient = new GuzzleAdapter(new Client());
$sparky = new SparkPost($httpClient, $options);
$promise = $sparky->request('POST', 'templates', [
- "name" => "PHP example template",
- "content" => [
- "from" => "from@YOUR_DOMAIN",
- "subject" => "Your Subject",
- "html" => "<b>Write your message here.</b>"
- ]
+ 'name' => 'PHP example template',
+ 'content' => [
+ 'from' => 'from@YOUR_DOMAIN',
+ 'subject' => 'Your Subject',
+ 'html' => '<b>Write your message here.</b>',
+ ],
]);
try {
diff --git a/examples/templates/preview_template.php b/examples/templates/preview_template.php
index cdfa055..0f0a1db 100644
--- a/examples/templates/preview_template.php
+++ b/examples/templates/preview_template.php
@@ -17,8 +17,8 @@ $sparky = new SparkPost($httpClient, $options);
$promise = $sparky->request('POST', 'templates/TEMPLATE_ID/preview?draft=true', [
'substitution_data' => [
- 'some_key' => 'some_value'
- ]
+ 'some_key' => 'some_value',
+ ],
]);
try {
diff --git a/examples/templates/update_template.php b/examples/templates/update_template.php
index 1f467ce..4da186c 100644
--- a/examples/templates/update_template.php
+++ b/examples/templates/update_template.php
@@ -17,8 +17,8 @@ $sparky = new SparkPost($httpClient, $options);
$promise = $sparky->request('PUT', 'templates/TEMPLATE_ID', [
'options' => [
- 'open_tracking' => true
- ]
+ 'open_tracking' => true,
+ ],
]);
try {