Skip to content

Commit acea079

Browse files
committed
Fixing README examples.
1 parent 8c75ab0 commit acea079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ use Http\Adapter\Guzzle6\Client as GuzzleAdapter;
168168
$httpClient = new GuzzleAdapter(new Client());
169169
$sparky = new SparkPost($httpClient, ['key'=>'YOUR_API_KEY']);
170170

171-
$sparky = new SparkPost($httpClient, $options);
172171
$promise = $sparky->transmissions->post([
173172
'content' => [
174173
'from' => [
@@ -205,6 +204,7 @@ $promise = $sparky->transmissions->post([
205204
],
206205
],
207206
]);
207+
?>
208208
```
209209

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

231232

0 commit comments

Comments
 (0)