Skip to content

Commit eeff2b4

Browse files
author
Matt Bernier
authored
Merge pull request #42 from dhsrocha/master
Added example file, updated .gitignore and README.
2 parents c31a9c4 + 9e508e7 commit eeff2b4

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ CSharpHTTPClient/packages/
1414
CSharpHTTPClient/CSharpHTTPClient.sln.VisualState.xml
1515
*.PublicKey
1616
*.pfx
17+
18+
# Environment files
19+
.env/*.*

Example/.env_sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export SENDGRID_API_KEY=''

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,20 @@ Console.WriteLine(response.StatusCode);
8585
Console.WriteLine(response.Body.ReadAsStringAsync().Result);
8686
Console.WriteLine(response.Headers.ToString());
8787
```
88-
8988
<a name="usage"></a>
9089
# Usage
9190

9291
- [Example Code](https://github.com/sendgrid/csharp-http-client/blob/master/Example/Example.cs)
9392

93+
## Environment Variables
94+
95+
You can do the following to create a .env file:
96+
97+
```cp .env_example .env```
98+
99+
Then, just add your API Key into your .env file.
100+
101+
94102
<a name="roadmap"></a>
95103
# Roadmap
96104

@@ -121,4 +129,4 @@ csharp-http-client is guided and supported by the SendGrid [Developer Experience
121129
csharp-http-client is maintained and funded by SendGrid, Inc. The names and logos for csharp-http-client are trademarks of SendGrid, Inc.
122130

123131
# License
124-
[The MIT License (MIT)](LICENSE.txt)
132+
[The MIT License (MIT)](LICENSE.txt)

0 commit comments

Comments
 (0)