summaryrefslogtreecommitdiffstats
path: root/examples/mail/mail.js
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-06-15 14:44:59 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-06-15 14:44:59 -0700
commiteafe5c107ba0b614f31be094780983f6daf3d46d (patch)
tree1af9aa99ca4801a1769243d6ad82178ec26093b6 /examples/mail/mail.js
parentb193cde6f4eb3bdfb49b652e67fbd89b704a2d1b (diff)
downloadsendgrid-nodejs-eafe5c107ba0b614f31be094780983f6daf3d46d.zip
sendgrid-nodejs-eafe5c107ba0b614f31be094780983f6daf3d46d.tar.gz
sendgrid-nodejs-eafe5c107ba0b614f31be094780983f6daf3d46d.tar.bz2
Fix substitution example and docs
https://github.com/sendgrid/sendgrid-nodejs/issues/238
Diffstat (limited to 'examples/mail/mail.js')
-rw-r--r--examples/mail/mail.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/mail/mail.js b/examples/mail/mail.js
index 44af771..0d3966f 100644
--- a/examples/mail/mail.js
+++ b/examples/mail/mail.js
@@ -124,13 +124,8 @@ request.body = {
"send_at": 1409348513,
"subject": "Hello, World!",
"substitutions": {
- "sub": {
- "%name%": [
- "John",
- "Jane",
- "Sam"
- ]
- }
+ "id": "substitutions",
+ "type": "object"
},
"to": [
{