summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeardyman <nornholdj@gmail.com>2015-10-02 16:41:44 -0400
committerbeardyman <nornholdj@gmail.com>2015-10-02 16:41:44 -0400
commit6818faa620c5b2e4f384d34e3156606938a2dbc1 (patch)
treef8c96a58861efc0114087b301bedb12d676dcdec
parent2f1b80397a83f7a6b9863919005dbf384553b3b1 (diff)
downloadphp-sparkpost-6818faa620c5b2e4f384d34e3156606938a2dbc1.zip
php-sparkpost-6818faa620c5b2e4f384d34e3156606938a2dbc1.tar.gz
php-sparkpost-6818faa620c5b2e4f384d34e3156606938a2dbc1.tar.bz2
udpated readme with review suggestions
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 9005e01..33d5ad7 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,8 @@ $sparky = new SparkPost($httpAdapter, ['key'=>'YOUR API KEY']);
## Getting Started: Your First Mailing
```
+require 'vendor/autoload.php';
+
use SparkPost\SparkPost;
use GuzzleHttp\Client;
use Ivory\HttpAdapter\Guzzle6HttpAdapter;
@@ -57,11 +59,11 @@ try {
'from'=>'From Envelope <from@sparkpostbox.com>',
'html'=>'<html><body><h1>Congratulations, {{name}}!</h1><p>You just sent your very first mailing!</p></body></html>',
'text'=>'Congratulations, {{name}}!! You just sent your very first mailing!',
- 'substitutionData'=>array('name'=>'YOUR FIRST NAME')
+ 'substitutionData'=>['name'=>'YOUR FIRST NAME']
'subject'=>'First Mailing From PHP',
'recipients'=>[
[
- "address"=>[
+ 'address'=>[
'name'=>'YOUR FULL NAME',
'email'=>'YOUR EMAIL ADDRESS'
]
@@ -77,7 +79,7 @@ try {
## Learn More
* For more detailed examples, check our examples:
- * [Transmissions](https://github.com/SparkPost/php-sparkpost/tree/master/examples/transmission)
+ * [Transmissions](https://github.com/SparkPost/php-sparkpost/tree/master/examples/transmission)
* Read our REST API documentation - <http://www.sparkpost.com/docs/introduction>
## Field Descriptions