summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Avilla <adam@avil.la>2016-10-06 07:21:01 -0700
committerAdam Avilla <adam@avil.la>2016-10-06 07:21:01 -0700
commitacea0793fd0ea44919bc7fc9cc92f23a20196adc (patch)
tree43b0e0ffbe9e2749d956bceaa119520c84a928df
parent8c75ab08e18bc349e39582c6f8d17a9970c4a3c0 (diff)
downloadphp-sparkpost-acea0793fd0ea44919bc7fc9cc92f23a20196adc.zip
php-sparkpost-acea0793fd0ea44919bc7fc9cc92f23a20196adc.tar.gz
php-sparkpost-acea0793fd0ea44919bc7fc9cc92f23a20196adc.tar.bz2
Fixing README examples.
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
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',
]);
+?>
```