summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-06-10 17:47:24 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-06-10 17:47:24 -0700
commit01c3fc4b94df008cfe03ffb467d4c6dbe6dcfb2c (patch)
tree19c7727d4e826daca2f9ebe40aca4f99fa4135db /examples
parentb57fed080d8e1ddec91b9a5ab50ad6faf8da8624 (diff)
downloadphp-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')
-rw-r--r--examples/example.php5
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