diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-10 17:47:24 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-10 17:47:24 -0700 |
commit | 01c3fc4b94df008cfe03ffb467d4c6dbe6dcfb2c (patch) | |
tree | 19c7727d4e826daca2f9ebe40aca4f99fa4135db /examples/example.php | |
parent | b57fed080d8e1ddec91b9a5ab50ad6faf8da8624 (diff) | |
download | php-http-client-01c3fc4b94df008cfe03ffb467d4c6dbe6dcfb2c.zip php-http-client-01c3fc4b94df008cfe03ffb467d4c6dbe6dcfb2c.tar.gz php-http-client-01c3fc4b94df008cfe03ffb467d4c6dbe6dcfb2c.tar.bz2 |
Version Bump v3.1.0: Automatically add Content-Type: application/json when there is a request bodyv3.1.0
Diffstat (limited to 'examples/example.php')
-rw-r--r-- | examples/example.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/example.php b/examples/example.php index 9e414eb..1eb8c41 100644 --- a/examples/example.php +++ b/examples/example.php @@ -6,10 +6,7 @@ include(dirname(__DIR__).'/lib/SendGrid/client.php'); // This gets the parent directory, for your current directory use getcwd() $path_to_config = dirname(__DIR__); $api_key = getenv('SENDGRID_API_KEY'); -$headers = array( - 'Content-Type: application/json', - 'Authorization: Bearer '.$api_key -); +$headers = array('Authorization: Bearer '.$api_key); $client = new SendGrid\Client('https://api.sendgrid.com', $headers, '/v3', null); // GET Collection |