diff options
author | Rich Leland <rich.leland@messagesystems.com> | 2016-05-03 09:20:06 -0400 |
---|---|---|
committer | Rich Leland <rich.leland@messagesystems.com> | 2016-05-03 09:20:06 -0400 |
commit | fc1ee14ce3b37c504543e166957d7ce1f49ef414 (patch) | |
tree | 8ceccdeb7df4d60fa5d771c0e4136fb0a5a32b75 | |
parent | 599ce4654de8879e036833334b08dc60b023d51c (diff) | |
download | php-sparkpost-fc1ee14ce3b37c504543e166957d7ce1f49ef414.zip php-sparkpost-fc1ee14ce3b37c504543e166957d7ce1f49ef414.tar.gz php-sparkpost-fc1ee14ce3b37c504543e166957d7ce1f49ef414.tar.bz2 |
Fix typos, update language in examples
-rw-r--r-- | examples/transmission/delete_transmission.php | 6 | ||||
-rw-r--r-- | examples/transmission/get_all_transmissions.php | 6 | ||||
-rw-r--r-- | examples/transmission/get_transmission.php | 6 | ||||
-rw-r--r-- | examples/transmission/rfc822.php | 24 | ||||
-rw-r--r-- | examples/transmission/send_transmission_all_fields.php | 4 | ||||
-rw-r--r-- | examples/transmission/simple_send.php | 4 | ||||
-rw-r--r-- | examples/transmission/stored_recipients_inline_content.php | 4 | ||||
-rw-r--r-- | examples/transmission/stored_template_send.php | 4 | ||||
-rw-r--r-- | examples/unwrapped/create_template.php | 28 | ||||
-rw-r--r-- | examples/unwrapped/get_webhooks.php | 8 |
10 files changed, 47 insertions, 47 deletions
diff --git a/examples/transmission/delete_transmission.php b/examples/transmission/delete_transmission.php index 03e5119..de116eb 100644 --- a/examples/transmission/delete_transmission.php +++ b/examples/transmission/delete_transmission.php @@ -14,9 +14,9 @@ $httpAdapter = new Guzzle6HttpAdapter(new Client()); $sparky = new SparkPost($httpAdapter, ['key'=>$config['api-key']]); try { - $results = $sparky->transmission->delete('transmission-id'); - echo 'Transmission deleted!'; + $results = $sparky->transmission->delete('transmission-id'); + echo 'Transmission deleted!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getMessage(); } ?> diff --git a/examples/transmission/get_all_transmissions.php b/examples/transmission/get_all_transmissions.php index afbe5aa..d4d92c0 100644 --- a/examples/transmission/get_all_transmissions.php +++ b/examples/transmission/get_all_transmissions.php @@ -14,9 +14,9 @@ $httpAdapter = new Guzzle6HttpAdapter(new Client()); $sparky = new SparkPost($httpAdapter, ['key'=>$config['api-key']]); try { - $results = $sparky->transmission->all(); - echo 'Congrats you can use your SDK!'; + $results = $sparky->transmission->all(); + echo 'Congrats! You got a list of all your transmissions from SparkPost!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getMessage(); } ?> diff --git a/examples/transmission/get_transmission.php b/examples/transmission/get_transmission.php index 0bda953..974c064 100644 --- a/examples/transmission/get_transmission.php +++ b/examples/transmission/get_transmission.php @@ -14,9 +14,9 @@ $httpAdapter = new Guzzle6HttpAdapter(new Client()); $sparky = new SparkPost($httpAdapter, ['key'=>$config['api-key']]); try { - $results = $sparky->transmission->find('Your Transmission ID'); - echo 'Congrats you can use your SDK!'; + $results = $sparky->transmission->find('Your Transmission ID'); + echo 'Congrats! You retrieved your transmission from SparkPost!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getMessage(); } ?> diff --git a/examples/transmission/rfc822.php b/examples/transmission/rfc822.php index 1054c57..0949efa 100644 --- a/examples/transmission/rfc822.php +++ b/examples/transmission/rfc822.php @@ -14,18 +14,18 @@ $httpAdapter = new Guzzle6HttpAdapter(new Client()); $sparky = new SparkPost($httpAdapter, ['key'=>$config['api-key']]); try { - $results = $sparky->transmission->send([ - 'recipients'=>[ - [ - 'address'=>[ - 'email'=>'john.doe@example.com' - ] - ] - ], - 'rfc822'=>'Content-Type: text/plain\nFrom: From Envelope <from@sparkpostbox.com>\nSubject: Example Email\n\nHello World' - ]); - echo 'Congrats you can use your SDK!'; + $results = $sparky->transmission->send([ + 'recipients'=>[ + [ + 'address'=>[ + 'email'=>'john.doe@example.com' + ] + ] + ], + 'rfc822'=>'Content-Type: text/plain\nFrom: From Envelope <from@sparkpostbox.com>\nSubject: Example Email\n\nHello World' + ]); + echo 'Congrats! You sent an email using SparkPost!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getMessage(); } ?> diff --git a/examples/transmission/send_transmission_all_fields.php b/examples/transmission/send_transmission_all_fields.php index 35115e7..51b6a89 100644 --- a/examples/transmission/send_transmission_all_fields.php +++ b/examples/transmission/send_transmission_all_fields.php @@ -38,7 +38,7 @@ try{ 'startTime'=>'2016-03-17T08:00:00-04:00', 'from'=>[ 'name' => 'From Envelope', - 'email' => 'from@sparkpostbox.com>' + 'email' => 'from@sparkpostbox.com' ], 'html'=>'<p>Hello World! Your name is: {{name}}</p>', 'text'=>'Hello World!', @@ -59,7 +59,7 @@ try{ ] ]); - echo 'Congrats you can use your SDK!'; + echo 'Congrats! You sent an email using SparkPost!'; } catch (\Exception $exception) { echo $exception->getMessage(); } diff --git a/examples/transmission/simple_send.php b/examples/transmission/simple_send.php index 245af70..08bef9a 100644 --- a/examples/transmission/simple_send.php +++ b/examples/transmission/simple_send.php @@ -17,7 +17,7 @@ try { $results = $sparky->transmission->send([ 'from'=>[ 'name' => 'From Envelope', - 'email' => 'from@sparkpostbox.com>' + 'email' => 'from@sparkpostbox.com' ], 'html'=>'<p>Hello World!</p>', 'text'=>'Hello World!', @@ -30,7 +30,7 @@ try { ] ] ]); - echo 'Congrats you can use your SDK!'; + echo 'Congrats! You sent an email using SparkPost!'; } catch (\Exception $exception) { echo $exception->getMessage(); } diff --git a/examples/transmission/stored_recipients_inline_content.php b/examples/transmission/stored_recipients_inline_content.php index 8a605f5..b31167c 100644 --- a/examples/transmission/stored_recipients_inline_content.php +++ b/examples/transmission/stored_recipients_inline_content.php @@ -19,7 +19,7 @@ try { 'campaign'=>'my-campaign', 'from'=>[ 'name' => 'From Envelope', - 'email' => 'from@sparkpostbox.com>' + 'email' => 'from@sparkpostbox.com' ], 'html'=>'<p>Hello World! Your name is: {{name}}</p>', 'text'=>'Hello World!', @@ -27,7 +27,7 @@ try { 'recipientList'=>'Example List' ]); - echo 'Congrats you can use your SDK!'; + echo 'Congrats! You sent an email using SparkPost!'; } catch (\Exception $exception) { echo $exception->getMessage(); } diff --git a/examples/transmission/stored_template_send.php b/examples/transmission/stored_template_send.php index 3df4a95..de0c01c 100644 --- a/examples/transmission/stored_template_send.php +++ b/examples/transmission/stored_template_send.php @@ -17,7 +17,7 @@ try { $results = $sparky->transmission->send([ 'from'=>[ 'name' => 'From Envelope', - 'email' => 'from@sparkpostbox.com>' + 'email' => 'from@sparkpostbox.com' ], 'recipients'=>[ [ @@ -28,7 +28,7 @@ try { ], 'template'=>'my-first-email' ]); - echo 'Congrats you can use your SDK!'; + echo 'Congrats! You sent an email using SparkPost!'; } catch (\Exception $exception) { echo $exception->getMessage(); } diff --git a/examples/unwrapped/create_template.php b/examples/unwrapped/create_template.php index d59815d..45239b0 100644 --- a/examples/unwrapped/create_template.php +++ b/examples/unwrapped/create_template.php @@ -14,21 +14,21 @@ $httpAdapter = new Guzzle6HttpAdapter(new Client()); $sparky = new SparkPost($httpAdapter, ['key'=>$config['api-key']]); try { - // define the endpoint - $sparky->setupUnwrapped('templates'); + // define the endpoint + $sparky->setupUnwrapped('templates'); - $templateConfig = [ - 'name' => 'Summer Sale!', - 'id'=>'summer-sale', - 'content'=> [ - 'from' => 'from@sparkpostbox.com', - 'subject' => 'Summer deals', - 'html' => '<b>Check out these deals!</b>' - ] - ]; - $results = $sparky->templates->create($templateConfig); - echo 'Congrats you can use your SDK!'; + $templateConfig = [ + 'name' => 'Summer Sale!', + 'id'=>'summer-sale', + 'content'=> [ + 'from' => 'from@sparkpostbox.com', + 'subject' => 'Summer deals', + 'html' => '<b>Check out these deals!</b>' + ] + ]; + $results = $sparky->templates->create($templateConfig); + echo 'Congrats! You created a template using SparkPost!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getMessage(); } ?> diff --git a/examples/unwrapped/get_webhooks.php b/examples/unwrapped/get_webhooks.php index b9ed723..a71cb3f 100644 --- a/examples/unwrapped/get_webhooks.php +++ b/examples/unwrapped/get_webhooks.php @@ -14,12 +14,12 @@ $httpAdapter = new Guzzle6HttpAdapter(new Client()); $sparky = new SparkPost($httpAdapter, ['key'=>$config['api-key']]); try { - $sparky->setupUnwrapped('webhooks'); + $sparky->setupUnwrapped('webhooks'); - $results = $sparky->webhooks->get(); + $results = $sparky->webhooks->get(); - echo 'Congrats you can use your SDK!'; + echo 'Congrats! You got a list of all your webhooks from SparkPost!'; } catch (\Exception $exception) { - echo $exception->getMessage(); + echo $exception->getMessage(); } ?> |