From 49e9e2d4bd3f4378f53be76b0aad7c3e91d7bd3d Mon Sep 17 00:00:00 2001 From: Morten Nissen Date: Tue, 31 Oct 2017 20:48:17 +0100 Subject: [PATCH] Moved usage and enviorment variables, to USAGE.md --- README.md | 33 +-------------------------------- USAGE.md | 10 +++++++++- 2 files changed, 10 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 7b532cc..e44899b 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ If you are looking for the SendGrid API client library, please see [this repo](h * [Announcements](#announcements) * [Installation](#installation) * [Quick Start](#quick-start) -* [Usage](#usage) +* [Usage](./USAGE.md) * [Roadmap](#roadmap) * [How to Contribute](#contribute) * [About](#about) @@ -115,37 +115,6 @@ try { } ``` - -# Usage - -- [Example Code](https://github.com/sendgrid/java-http-client/tree/master/examples) -- [Library Usage Documentation](USAGE.md) - - -The example uses SendGrid, you can get your free account [here](https://sendgrid.com/free?source=java-http-client). - -First, update your environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys). - -```bash -echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env -echo "sendgrid.env" >> .gitignore -source ./sendgrid.env -``` - -```bash -mvn package -cd examples -javac -classpath {path_to}/sendgrid-java-http-client-4.0.0-jar.jar:. Example.java && java -classpath {path_to}/sendgrid-java-http-client-4.0.0-jar.jar:. Example -``` - -## 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 diff --git a/USAGE.md b/USAGE.md index 40c3f83..c3a9ad1 100644 --- a/USAGE.md +++ b/USAGE.md @@ -16,4 +16,12 @@ source ./sendgrid.env mvn package cd examples javac -classpath {path_to}/sendgrid-java-http-client-4.0.0-jar.jar:. Example.java && java -classpath {path_to}/sendgrid-java-http-client-4.0.0-jar.jar:. Example -``` \ No newline at end of file +``` + +## 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. \ No newline at end of file