summaryrefslogtreecommitdiffstats
path: root/examples/helpers/mail/example.js
diff options
context:
space:
mode:
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())