Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit 48f06aa

Browse files
author
Matt Bernier
authored
Merge pull request #40 from Tonkpils/patch-1
Add USAGE.md file
2 parents e1357e3 + a6435bc commit 48f06aa

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

README.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -85,24 +85,7 @@ client.API(request, function (response) {
8585

8686
<a name="usage"></a>
8787
# Usage
88-
89-
Following is an example using SendGrid. You can get your free account [here](https://sendgrid.com/free?source=nodejs-http-client).
90-
91-
First, update your environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys).
92-
93-
```bash
94-
echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
95-
echo "sendgrid.env" >> .gitignore
96-
source ./sendgrid.env
97-
```
98-
99-
Here is the [full working code](https://github.com/sendgrid/nodejs-http-client/blob/master/examples/example.js).
100-
101-
To run the example:
102-
103-
```bash
104-
node examples/example
105-
```
88+
[Library Usage Documentation](https://github.com/sendgrid/nodejs-http-client/blob/master/USAGE.md)
10689

10790
<a name="roadmap"></a>
10891
# Roadmap
@@ -127,4 +110,4 @@ nodejs-http-client is maintained and funded by SendGrid, Inc. The names and logo
127110

128111
<a name="license"></a>
129112
# License
130-
[The MIT License (MIT)](LICENSE.txt)
113+
[The MIT License (MIT)](LICENSE.txt)

USAGE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Following is an example using SendGrid. You can get your free account [here](https://sendgrid.com/free?source=nodejs-http-client).
2+
3+
First, update your environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys).
4+
5+
```bash
6+
echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env
7+
echo "sendgrid.env" >> .gitignore
8+
source ./sendgrid.env
9+
```
10+
11+
Here is the [full working code](https://github.com/sendgrid/nodejs-http-client/blob/master/examples/example.js).
12+
13+
To run the example:
14+
15+
```bash
16+
node examples/example
17+
```

0 commit comments

Comments
 (0)