diff options
author | Adam Buczynski <adambuczynski@gmail.com> | 2016-07-27 13:08:04 +1200 |
---|---|---|
committer | Adam Buczynski <adambuczynski@gmail.com> | 2016-07-27 13:08:04 +1200 |
commit | 11d679106f569d95600db04ab47487148962fd7a (patch) | |
tree | a6dd3bc6e5a23ff22df75a596db9eef28cda5be9 /examples/helpers/mail/example.js | |
parent | 7cc13ef069841ba47db314820ff1180d5195b461 (diff) | |
download | sendgrid-nodejs-11d679106f569d95600db04ab47487148962fd7a.zip sendgrid-nodejs-11d679106f569d95600db04ab47487148962fd7a.tar.gz sendgrid-nodejs-11d679106f569d95600db04ab47487148962fd7a.tar.bz2 |
Update examples and tests with new callback signature
Diffstat (limited to 'examples/helpers/mail/example.js')
-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 ddbded3..364614b 100644 --- a/examples/helpers/mail/example.js +++ b/examples/helpers/mail/example.js @@ -144,7 +144,7 @@ function send(toSend){ requestPost.method = 'POST' requestPost.path = '/v3/mail/send' requestPost.body = requestBody - sg.API(requestPost, function (response) { + sg.API(requestPost, function (error, response) { console.log(response.statusCode) console.log(response.body) console.log(response.headers) |