diff options
author | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-09 20:32:45 -0700 |
---|---|---|
committer | Elmer Thomas <elmer@thinkingserious.com> | 2016-06-09 20:32:45 -0700 |
commit | 96cde7f4239fa7f387351a6690bde966fb5557a3 (patch) | |
tree | 0785a96ed12e8c4d5663cf6eea4dc7a5d545df73 /examples/mail/mail.js | |
parent | ec88853a3e3803a24775b7f6ec66421f5c05ba2c (diff) | |
download | sendgrid-nodejs-96cde7f4239fa7f387351a6690bde966fb5557a3.zip sendgrid-nodejs-96cde7f4239fa7f387351a6690bde966fb5557a3.tar.gz sendgrid-nodejs-96cde7f4239fa7f387351a6690bde966fb5557a3.tar.bz2 |
Formating and links to /mail/send
Diffstat (limited to 'examples/mail/mail.js')
-rw-r--r-- | examples/mail/mail.js | 4 |
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": { |