This is a tutorial application for the Java client library for Genability's API. The associated tutorial is here, and there are lots of comments in the code that detail how to make and process requests to the API using this library.
This tutorial shows a simple workflow for doing a residential savings analysis based on a person's ZIP code. It utilizes the following Genability API endpoints:
- Load Serving Entity -
/rest/public/lses
- Account -
/rest/v1/accounts
- Typical Baseline -
/rest/v1/baselines/best
- Savings Analysis -
/rest/v1/accounts/analysis
- Create a Genability App from Genability Explorer
- Export your app ID and app key to
APP_ID
andAPP_KEY
environment variables, respectively. - Download the tutorial app and install it using
mvn:install
. - Run the app using
mvn exec:java
.
In summary:
export APP_ID=YOUR_APP_ID
export APP_KEY=YOUR_APP_KEY
git clone https://github.com/Genability/java-client-tutorial.git
cd java-client-tutorial
mvn install
mvn exec:java