summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddie Zaneski <eddiezane@gmail.com>2015-07-19 10:21:44 -0400
committerEddie Zaneski <eddiezane@gmail.com>2015-07-19 10:21:44 -0400
commit24ec7fdd34d1f5cc07b32e00d9a76594bedbdaf7 (patch)
tree159b0ffdd5d9099bea36703f50950dbfc8944289
parent4bdfed2b8a2f7b6489364c7e58720b3ab4c30d94 (diff)
downloadsendgrid-nodejs-24ec7fdd34d1f5cc07b32e00d9a76594bedbdaf7.zip
sendgrid-nodejs-24ec7fdd34d1f5cc07b32e00d9a76594bedbdaf7.tar.gz
sendgrid-nodejs-24ec7fdd34d1f5cc07b32e00d9a76594bedbdaf7.tar.bz2
Update api key link
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 68f1080..180aaf4 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_password);
+var sendgrid = require('sendgrid')(sendgrid_api_key);
sendgrid.send({
to: 'example@example.com',
from: 'other@example.com',
@@ -54,12 +54,12 @@ There is a [sendgrid-nodejs-example app](https://github.com/sendgrid/sendgrid-no
## Usage
-To begin using this library, initialize the SendGrid object with your SendGrid credentials OR a SendGrid [API Key](https://sendgrid.com/docs/User_Guide/Account/api_keys.html). API Key is the preferred method. To configure API keys, visit https://sendgrid.com/settings/api_keys
+To begin using this library, initialize the SendGrid object with your SendGrid credentials OR a SendGrid [API Key](https://sendgrid.com/docs/User_Guide/Account/api_keys.html). API Key is the preferred method. To configure API keys, visit [https://app.sendgrid.com/settings/api_keys](https://app.sendgrid.com/settings/api_keys).
```javascript
-var sendgrid = require('sendgrid')(api_user, api_password);
+var sendgrid = require('sendgrid')(sendgrid_api_key);
// OR
-var sendgrid = require('sendgrid')(api_key);
+var sendgrid = require('sendgrid')(api_user, api_password);
```
Create a new JavaScript object with your message details.