diff options
author | Eddie Zaneski <eddiezane@gmail.com> | 2015-07-19 10:21:44 -0400 |
---|---|---|
committer | Eddie Zaneski <eddiezane@gmail.com> | 2015-07-19 10:21:44 -0400 |
commit | 24ec7fdd34d1f5cc07b32e00d9a76594bedbdaf7 (patch) | |
tree | 159b0ffdd5d9099bea36703f50950dbfc8944289 | |
parent | 4bdfed2b8a2f7b6489364c7e58720b3ab4c30d94 (diff) | |
download | sendgrid-nodejs-24ec7fdd34d1f5cc07b32e00d9a76594bedbdaf7.zip sendgrid-nodejs-24ec7fdd34d1f5cc07b32e00d9a76594bedbdaf7.tar.gz sendgrid-nodejs-24ec7fdd34d1f5cc07b32e00d9a76594bedbdaf7.tar.bz2 |
Update api key link
-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_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. |