This client code is sample code in java 8. It is build by maven and uses the spring framework. Espacially the RestTemplate to communicate with the API.
The tests are an executable documentation.
./mvnw compile
./mvnw test
Starting the test suite will open up a browser window to authorize the current client as device.