summaryrefslogtreecommitdiffstats
path: root/examples/helpers/mail/example.php
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-06-13 14:59:15 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-06-13 14:59:15 -0700
commit75b0cb25a07314c99fe91d504c5ebaca38f2aaf4 (patch)
treeb12805a79484522f0ff5d75f1c5fa9e02d64208d /examples/helpers/mail/example.php
parent078d38b5399eddd80406d07e1b3f4b5cb24f522d (diff)
downloadsendgrid-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.php6
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();