diff options
Diffstat (limited to 'examples/unwrapped')
-rw-r--r-- | examples/unwrapped/create_transmission.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/unwrapped/create_transmission.php b/examples/unwrapped/create_transmission.php index f19ee6e..d3a44c5 100644 --- a/examples/unwrapped/create_transmission.php +++ b/examples/unwrapped/create_transmission.php @@ -24,8 +24,8 @@ try { [ 'address' => [ 'email' => 'john.doe@example.com', - ] - ] + ], + ], ], 'content' => [ 'from' => [ @@ -34,8 +34,8 @@ try { ], 'html' => '<p>Hello World!</p>', 'text' => 'Hello World!', - 'subject' => 'Example Email' - ] + 'subject' => 'Example Email', + ], ]; $results = $sparky->transmissions->create($message); echo 'Congrats! You sent a message using SparkPost!'; @@ -44,4 +44,3 @@ try { echo $exception->getAPICode()."\n"; echo $exception->getAPIDescription()."\n"; } - |