From f2d4b6ee7f3c577063fe043c5345c6a7aa958c95 Mon Sep 17 00:00:00 2001 From: Diego Rocha Date: Fri, 27 Oct 2017 00:32:34 -0200 Subject: [PATCH 1/2] Added example file, updated .gitignore and README. --- .gitignore | 3 +++ Example/.env_sample | 1 + README.md | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 Example/.env_sample diff --git a/.gitignore b/.gitignore index 7dfead3..5247801 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ CSharpHTTPClient/packages/ CSharpHTTPClient/CSharpHTTPClient.sln.VisualState.xml *.PublicKey *.pfx + +# Environment files +.env/*.* \ No newline at end of file diff --git a/Example/.env_sample b/Example/.env_sample new file mode 100644 index 0000000..30857f4 --- /dev/null +++ b/Example/.env_sample @@ -0,0 +1 @@ +export SENDGRID_API_KEY='' \ No newline at end of file diff --git a/README.md b/README.md index d251004..4375f53 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,8 @@ Console.WriteLine(response.Body.ReadAsStringAsync().Result); Console.WriteLine(response.Headers.ToString()); ``` +You can use the ```.env_example``` file located at "examples" folder. Just copy it to a ```.env``` folder ou can put on your project's root. + # Usage From 9e508e70bfb0558316841df9f4856c883dd8806d Mon Sep 17 00:00:00 2001 From: Matt Bernier Date: Tue, 31 Oct 2017 13:27:52 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4375f53..15a1917 100644 --- a/README.md +++ b/README.md @@ -85,14 +85,20 @@ Console.WriteLine(response.StatusCode); Console.WriteLine(response.Body.ReadAsStringAsync().Result); Console.WriteLine(response.Headers.ToString()); ``` - -You can use the ```.env_example``` file located at "examples" folder. Just copy it to a ```.env``` folder ou can put on your project's root. - # Usage - [Example Code](https://github.com/sendgrid/csharp-http-client/blob/master/Example/Example.cs) +## Environment Variables + +You can do the following to create a .env file: + +```cp .env_example .env``` + +Then, just add your API Key into your .env file. + + # Roadmap @@ -123,4 +129,4 @@ csharp-http-client is guided and supported by the SendGrid [Developer Experience csharp-http-client is maintained and funded by SendGrid, Inc. The names and logos for csharp-http-client are trademarks of SendGrid, Inc. # License -[The MIT License (MIT)](LICENSE.txt) \ No newline at end of file +[The MIT License (MIT)](LICENSE.txt)