diff options
author | Elmer Thomas <elmer@ThinkingSerious.com> | 2016-12-22 07:28:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-22 07:28:06 -0800 |
commit | b67ccf6c6f6eb3917959abbb690d437052b8ff73 (patch) | |
tree | 9f0faeebe83242f9c7376abd7c66396417125733 /README.md | |
parent | 3c4c35eafd364ebcfdbb0a37f655417beed8ee0f (diff) | |
download | php-http-client-origin/thinkingserious-patch-1.zip php-http-client-origin/thinkingserious-patch-1.tar.gz php-http-client-origin/thinkingserious-patch-1.tar.bz2 |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |