Skip to content

Commit

Permalink
Merge pull request #147 from hekaldama/fixup_readme_examples
Browse files Browse the repository at this point in the history
Fixing README examples.
  • Loading branch information
ewandennis authored Oct 24, 2016
2 parents 8c75ab0 + acea079 commit 0a95943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down Expand Up @@ -205,6 +204,7 @@ $promise = $sparky->transmissions->post([
],
],
]);
?>
```

### Send An API Call Using The Base Request Function
Expand All @@ -226,6 +226,7 @@ $promise = $sparky->request('GET', 'metrics/ip-pools', [
'timezone' => 'America/New_York',
'limit' => '5',
]);
?>
```


Expand Down

0 comments on commit 0a95943

Please sign in to comment.