Skip to content

Genability/java-client-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Client Tutorial

Overview

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:

  1. Load Serving Entity - /rest/public/lses
  2. Account - /rest/v1/accounts
  3. Typical Baseline - /rest/v1/baselines/best
  4. Savings Analysis - /rest/v1/accounts/analysis

Usage

  1. Create a Genability App from Genability Explorer
  2. Export your app ID and app key to APP_ID and APP_KEY environment variables, respectively.
  3. Download the tutorial app and install it using mvn:install.
  4. 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

About

A tutorial using the genability-java client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages