summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKunal Batra <kunal.batra@sendgrid.com>2015-06-27 15:13:22 -0500
committerKunal Batra <kunal.batra@sendgrid.com>2015-06-27 15:13:22 -0500
commit895ca57d34a1e953d7e5afb23674c2659fbd80ff (patch)
treec0a1a874f163983aff10f1fa1c0cde3e2a4c6e5c
parentd968176b1953bc5c493853d5ed7e26bb75abff7d (diff)
downloadsendgrid-nodejs-895ca57d34a1e953d7e5afb23674c2659fbd80ff.zip
sendgrid-nodejs-895ca57d34a1e953d7e5afb23674c2659fbd80ff.tar.gz
sendgrid-nodejs-895ca57d34a1e953d7e5afb23674c2659fbd80ff.tar.bz2
Update README.md
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index d36ec7a..ed0aea0 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ This nodejs module allows you to quickly and easily send emails through SendGrid
[![NPM version](https://badge.fury.io/js/sendgrid.svg)](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";