summaryrefslogtreecommitdiffstats
path: root/examples/mail/mail.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mail/mail.js')
-rw-r--r--examples/mail/mail.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/mail/mail.js b/examples/mail/mail.js
index e6e6491..009f10e 100644
--- a/examples/mail/mail.js
+++ b/examples/mail/mail.js
@@ -4,6 +4,7 @@ var sg = require('../lib/sendgrid.js').SendGrid(process.env.SENDGRID_API_KEY)
// Create a batch ID
// POST /mail/batch
+
var request = sg.emptyRequest()
request.method = 'POST'
request.path = '/v3/mail/batch'
@@ -17,6 +18,7 @@ sg.API(request, function (response) {
// Validate batch ID
// GET /mail/batch/{batch_id}
+
var request = sg.emptyRequest()
request.method = 'GET'
request.path = '/v3/mail/batch/{batch_id}'
@@ -30,6 +32,8 @@ sg.API(request, function (response) {
// v3 Mail Send Beta
// POST /mail/send/beta
+// This endpoint has a helper, check it out [here](https://github.com/sendgrid/sendgrid-nodejs/blob/v3beta/lib/helpers/mail/README.md).
+
var request = sg.emptyRequest()
request.body = {
"asm": {