diff options
author | Adam Buczynski <adambuczynski@gmail.com> | 2016-07-28 07:37:03 +1200 |
---|---|---|
committer | Adam Buczynski <adambuczynski@gmail.com> | 2016-07-28 07:37:03 +1200 |
commit | 6bef6ceae3bf20bbe20803c4cf9d6a9c0ce97a67 (patch) | |
tree | ae190ebf2ea792ad2299b0837f727f27b7a8542a /examples/helpers | |
parent | 93718779fc9ec5497f612d269df5bde4fabaa799 (diff) | |
download | sendgrid-nodejs-6bef6ceae3bf20bbe20803c4cf9d6a9c0ce97a67.zip sendgrid-nodejs-6bef6ceae3bf20bbe20803c4cf9d6a9c0ce97a67.tar.gz sendgrid-nodejs-6bef6ceae3bf20bbe20803c4cf9d6a9c0ce97a67.tar.bz2 |
Remove redundant .SendGrid export, update readme examples
Diffstat (limited to 'examples/helpers')
-rw-r--r-- | examples/helpers/mail/example.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/helpers/mail/example.js b/examples/helpers/mail/example.js index 364614b..1924363 100644 --- a/examples/helpers/mail/example.js +++ b/examples/helpers/mail/example.js @@ -136,7 +136,7 @@ function send(toSend){ console.log(JSON.stringify(toSend, null, 2)) //console.log(JSON.stringify(toSend)) - var sg = require('sendgrid').SendGrid(process.env.SENDGRID_API_KEY) + var sg = require('sendgrid')(process.env.SENDGRID_API_KEY) var requestBody = toSend var emptyRequest = require('sendgrid-rest').request |