From acea0793fd0ea44919bc7fc9cc92f23a20196adc Mon Sep 17 00:00:00 2001 From: Adam Avilla Date: Thu, 6 Oct 2016 07:21:01 -0700 Subject: [PATCH] Fixing README examples. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40b549c..0570692 100644 --- a/README.md +++ b/README.md @@ -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', ]); +?> ```