File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,8 @@ Here is a quick example:
107
107
``` php
108
108
// include __DIR__ . '/loader.php';
109
109
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);
112
112
$response = $client->your()->api()->_($param)->call()->get();
113
113
print $response->statusCode();
114
114
print $response->headers();
@@ -120,8 +120,8 @@ print $response->body();
120
120
``` php
121
121
// include __DIR__ . '/loader.php';
122
122
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);
125
125
$query_params = array('hello' => 0, 'world' => 1);
126
126
$request_headers = array('X-Test' => 'test');
127
127
$data = array('some' => 1, 'awesome' => 2, 'data' => 3);
You can’t perform that action at this time.
0 commit comments