summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 46a6f35..4253c51 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,7 @@ Here is a quick example:
```php
require 'vendor/autoload.php';
$global_headers = array(Authorization: Basic XXXXXXX);
-$client = SendGrid\Client('base_url', 'global_headers');
+$client = SendGrid\Client('base_url', global_headers);
$response = $client->your()->api()->_($param)->call()->get();
print $response->statusCode();
print $response->headers();
@@ -59,7 +59,7 @@ print $response->body();
```php
require 'vendor/autoload.php';
$global_headers = array(Authorization: Basic XXXXXXX);
-$client = SendGrid\Client('base_url', 'global_headers');
+$client = SendGrid\Client('base_url', global_headers);
$query_params = array('hello' => 0, 'world' => 1);
$request_headers = array('X-Test' => 'test');
$data = array('some' => 1, 'awesome' => 2, 'data' => 3);