diff options
author | beardyman <nornholdj@gmail.com> | 2015-10-02 16:41:44 -0400 |
---|---|---|
committer | beardyman <nornholdj@gmail.com> | 2015-10-02 16:41:44 -0400 |
commit | 6818faa620c5b2e4f384d34e3156606938a2dbc1 (patch) | |
tree | f8c96a58861efc0114087b301bedb12d676dcdec | |
parent | 2f1b80397a83f7a6b9863919005dbf384553b3b1 (diff) | |
download | php-sparkpost-6818faa620c5b2e4f384d34e3156606938a2dbc1.zip php-sparkpost-6818faa620c5b2e4f384d34e3156606938a2dbc1.tar.gz php-sparkpost-6818faa620c5b2e4f384d34e3156606938a2dbc1.tar.bz2 |
udpated readme with review suggestions
-rw-r--r-- | README.md | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |