Skip to content

Commit 95ab310

Browse files
author
Matt Bernier
authored
Merge pull request sendgrid#52 from michaelspiss/develop/readme-syntax-fix
Fix syntax errors in readme examples
2 parents 2dcd209 + c1cccff commit 95ab310

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ Here is a quick example:
107107
```php
108108
// include __DIR__ . '/loader.php';
109109
require 'vendor/autoload.php';
110-
$global_headers = array(Authorization: Basic XXXXXXX);
111-
$client = new SendGrid\Client('base_url', global_headers);
110+
$global_headers = array('Authorization: Basic XXXXXXX');
111+
$client = new SendGrid\Client('base_url', $global_headers);
112112
$response = $client->your()->api()->_($param)->call()->get();
113113
print $response->statusCode();
114114
print $response->headers();
@@ -120,8 +120,8 @@ print $response->body();
120120
```php
121121
// include __DIR__ . '/loader.php';
122122
require 'vendor/autoload.php';
123-
$global_headers = array(Authorization: Basic XXXXXXX);
124-
$client = new SendGrid\Client('base_url', global_headers);
123+
$global_headers = array('Authorization: Basic XXXXXXX');
124+
$client = new SendGrid\Client('base_url', $global_headers);
125125
$query_params = array('hello' => 0, 'world' => 1);
126126
$request_headers = array('X-Test' => 'test');
127127
$data = array('some' => 1, 'awesome' => 2, 'data' => 3);

0 commit comments

Comments
 (0)