diff options
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -5,7 +5,10 @@ # SparkPost PHP Library [](https://travis-ci.org/SparkPost/php-sparkpost) -[](https://coveralls.io/github/SparkPost/php-sparkpost?branch=master) [](http://slack.sparkpost.com) +[](https://coveralls.io/github/SparkPost/php-sparkpost?branch=master) +[](https://packagist.org/packages/sparkpost/sparkpost) +[](https://packagist.org/packages/sparkpost/sparkpost) +[](http://slack.sparkpost.com) The official PHP library for using [the SparkPost REST API](https://developers.sparkpost.com/api/). @@ -168,7 +171,6 @@ use Http\Adapter\Guzzle6\Client as GuzzleAdapter; $httpClient = new GuzzleAdapter(new Client()); $sparky = new SparkPost($httpClient, ['key'=>'YOUR_API_KEY']); -$sparky = new SparkPost($httpClient, $options); $promise = $sparky->transmissions->post([ 'content' => [ 'from' => [ @@ -205,6 +207,7 @@ $promise = $sparky->transmissions->post([ ], ], ]); +?> ``` ### Send An API Call Using The Base Request Function @@ -226,6 +229,7 @@ $promise = $sparky->request('GET', 'metrics/ip-pools', [ 'timezone' => 'America/New_York', 'limit' => '5', ]); +?> ``` |