summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEwan Dennis <ewandennis@users.noreply.github.com>2016-10-24 11:01:50 +0100
committerGitHub <noreply@github.com>2016-10-24 11:01:50 +0100
commit0a959439f4611acd5da9b7390538c241aca9e922 (patch)
tree43b0e0ffbe9e2749d956bceaa119520c84a928df
parent8c75ab08e18bc349e39582c6f8d17a9970c4a3c0 (diff)
parentacea0793fd0ea44919bc7fc9cc92f23a20196adc (diff)
downloadphp-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.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',
]);
+?>
```