diff options
author | Ewan Dennis <ewandennis@users.noreply.github.com> | 2016-10-24 11:01:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 11:01:50 +0100 |
commit | 0a959439f4611acd5da9b7390538c241aca9e922 (patch) | |
tree | 43b0e0ffbe9e2749d956bceaa119520c84a928df | |
parent | 8c75ab08e18bc349e39582c6f8d17a9970c4a3c0 (diff) | |
parent | acea0793fd0ea44919bc7fc9cc92f23a20196adc (diff) | |
download | php-sparkpost-0a959439f4611acd5da9b7390538c241aca9e922.zip php-sparkpost-0a959439f4611acd5da9b7390538c241aca9e922.tar.gz php-sparkpost-0a959439f4611acd5da9b7390538c241aca9e922.tar.bz2 |
Merge pull request #147 from hekaldama/fixup_readme_examples
Fixing README examples.
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -168,7 +168,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 +204,7 @@ $promise = $sparky->transmissions->post([ ], ], ]); +?> ``` ### Send An API Call Using The Base Request Function @@ -226,6 +226,7 @@ $promise = $sparky->request('GET', 'metrics/ip-pools', [ 'timezone' => 'America/New_York', 'limit' => '5', ]); +?> ``` |