diff options
author | Kunal Batra <kunal.batra@sendgrid.com> | 2015-06-27 15:13:22 -0500 |
---|---|---|
committer | Kunal Batra <kunal.batra@sendgrid.com> | 2015-06-27 15:13:22 -0500 |
commit | 895ca57d34a1e953d7e5afb23674c2659fbd80ff (patch) | |
tree | c0a1a874f163983aff10f1fa1c0cde3e2a4c6e5c | |
parent | d968176b1953bc5c493853d5ed7e26bb75abff7d (diff) | |
download | sendgrid-nodejs-895ca57d34a1e953d7e5afb23674c2659fbd80ff.zip sendgrid-nodejs-895ca57d34a1e953d7e5afb23674c2659fbd80ff.tar.gz sendgrid-nodejs-895ca57d34a1e953d7e5afb23674c2659fbd80ff.tar.bz2 |
Update README.md
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -6,7 +6,7 @@ This nodejs module allows you to quickly and easily send emails through SendGrid [](http://badge.fury.io/js/sendgrid) ```javascript -var sendgrid = require('sendgrid')(api_user, api_key); +var sendgrid = require('sendgrid')(api_user, api_password); sendgrid.send({ to: 'example@example.com', from: 'other@example.com', @@ -90,7 +90,7 @@ Email helps you more powerfully prepare your message to be sent. To get started create an Email object where `params` is a javascript object. You can pass in as much or as little to `params` as you want. ```javascript -var sendgrid = require('sendgrid')(api_user, api_key); +var sendgrid = require('sendgrid')(api_user, api_password); var email = new sendgrid.Email(params); ``` @@ -99,7 +99,7 @@ var email = new sendgrid.Email(params); Here is a sample for using it. ```javascript -var sendgrid = require('sendgrid')(api_user, api_key); +var sendgrid = require('sendgrid')(api_user, api_password); var email = new sendgrid.Email({ to: 'foo@bar.com', from: 'you@yourself.com', @@ -150,7 +150,7 @@ NOTE: anything that is available in the Email constructor is available for use i You can set params like you would for any standard JavaScript object. ```javascript -var sendgrid = require('sendgrid')(api_user, api_key); +var sendgrid = require('sendgrid')(api_user, api_password); var email = new sendgrid.Email({to: 'person@email.com'}); email.to = "different@email.com"; email.replyto = "reply-here@email.com"; |