Skip to content

Commit 6818faa

Browse files
committed
udpated readme with review suggestions
1 parent 2f1b803 commit 6818faa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ $sparky = new SparkPost($httpAdapter, ['key'=>'YOUR API KEY']);
4444

4545
## Getting Started: Your First Mailing
4646
```
47+
require 'vendor/autoload.php';
48+
4749
use SparkPost\SparkPost;
4850
use GuzzleHttp\Client;
4951
use Ivory\HttpAdapter\Guzzle6HttpAdapter;
@@ -57,11 +59,11 @@ try {
5759
'from'=>'From Envelope <from@sparkpostbox.com>',
5860
'html'=>'<html><body><h1>Congratulations, {{name}}!</h1><p>You just sent your very first mailing!</p></body></html>',
5961
'text'=>'Congratulations, {{name}}!! You just sent your very first mailing!',
60-
'substitutionData'=>array('name'=>'YOUR FIRST NAME')
62+
'substitutionData'=>['name'=>'YOUR FIRST NAME']
6163
'subject'=>'First Mailing From PHP',
6264
'recipients'=>[
6365
[
64-
"address"=>[
66+
'address'=>[
6567
'name'=>'YOUR FULL NAME',
6668
'email'=>'YOUR EMAIL ADDRESS'
6769
]
@@ -77,7 +79,7 @@ try {
7779

7880
## Learn More
7981
* For more detailed examples, check our examples:
80-
* [Transmissions](https://github.com/SparkPost/php-sparkpost/tree/master/examples/transmission)
82+
* [Transmissions](https://github.com/SparkPost/php-sparkpost/tree/master/examples/transmission)
8183
* Read our REST API documentation - <http://www.sparkpost.com/docs/introduction>
8284

8385
## Field Descriptions

0 commit comments

Comments
 (0)