summaryrefslogtreecommitdiffstats
path: root/examples/helpers/mail/example.js
diff options
context:
space:
mode:
authorElmer Thomas <elmer@ThinkingSerious.com>2016-06-22 05:47:46 -0700
committerGitHub <noreply@github.com>2016-06-22 05:47:46 -0700
commitc6f5e2976790fa4c8df0bd5ee673036def48b5e6 (patch)
tree108662a98c714ecf5f7c3f9f020268bfcd5a69c6 /examples/helpers/mail/example.js
parent935754af2e9418f50c240c5dabc9bedfce36ad0b (diff)
downloadsendgrid-nodejs-c6f5e2976790fa4c8df0bd5ee673036def48b5e6.zip
sendgrid-nodejs-c6f5e2976790fa4c8df0bd5ee673036def48b5e6.tar.gz
sendgrid-nodejs-c6f5e2976790fa4c8df0bd5ee673036def48b5e6.tar.bz2
Typo in request and response bodies
Diffstat (limited to 'examples/helpers/mail/example.js')
-rw-r--r--examples/helpers/mail/example.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/helpers/mail/example.js b/examples/helpers/mail/example.js
index c109017..ddbded3 100644
--- a/examples/helpers/mail/example.js
+++ b/examples/helpers/mail/example.js
@@ -143,13 +143,13 @@ function send(toSend){
var requestPost = JSON.parse(JSON.stringify(emptyRequest))
requestPost.method = 'POST'
requestPost.path = '/v3/mail/send'
- requestPost.requestBody = requestBody
+ requestPost.body = requestBody
sg.API(requestPost, function (response) {
console.log(response.statusCode)
- console.log(response.responseBody)
- console.log(response.responseHeaders)
+ console.log(response.body)
+ console.log(response.headers)
})
}
send(helloEmail())
-send(kitchenSink()) \ No newline at end of file
+send(kitchenSink())