diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-13 14:59:15 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-13 14:59:15 -0700 |
commit | 75b0cb25a07314c99fe91d504c5ebaca38f2aaf4 (patch) | |
tree | b12805a79484522f0ff5d75f1c5fa9e02d64208d /examples/helpers/mail/example.php | |
parent | 078d38b5399eddd80406d07e1b3f4b5cb24f522d (diff) | |
download | sendgrid-php-75b0cb25a07314c99fe91d504c5ebaca38f2aaf4.zip sendgrid-php-75b0cb25a07314c99fe91d504c5ebaca38f2aaf4.tar.gz sendgrid-php-75b0cb25a07314c99fe91d504c5ebaca38f2aaf4.tar.bz2 |
Version Bump v5.0.0: full v3 Web API support
Diffstat (limited to 'examples/helpers/mail/example.php')
-rw-r--r-- | examples/helpers/mail/example.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/helpers/mail/example.php b/examples/helpers/mail/example.php index ce3f062..678302d 100644 --- a/examples/helpers/mail/example.php +++ b/examples/helpers/mail/example.php @@ -2,7 +2,7 @@ namespace SendGrid; // If you are using Composer -require __DIR__ . '/../../../vendor/autoload.php'; +require __DIR__ . '<PATH_TO>/vendor/autoload.php'; function helloEmail() @@ -182,7 +182,7 @@ function sendHelloEmail() $sg = new \SendGrid($apiKey); $request_body = helloEmail(); - $response = $sg->client->mail()->send()->beta()->post($request_body); + $response = $sg->client->mail()->send()->post($request_body); echo $response->statusCode(); echo $response->body(); echo $response->headers(); @@ -194,7 +194,7 @@ function sendKitchenSink() $sg = new \SendGrid($apiKey); $request_body = kitchenSink(); - $response = $sg->client->mail()->send()->beta()->post($request_body); + $response = $sg->client->mail()->send()->post($request_body); echo $response->statusCode(); echo $response->body(); echo $response->headers(); |