An example project of how to use Airvantage API in clojure
- You should have Leiningen 2 installed.
- Create an Api client on Airvantage (so that you have a "client id" and a "client secret")
- Run the application :
lein run
- The server should be something like "http://na.airvantage.net"
- There is not a lot of error handling at the moment, so if things break... all apologies
You can create an 'uberjar' for the project :
lein uberjar
java -jar target/airvantage-api-clojure-0.1.0-SNAPSHOT-standalone.jar
This namespace contains generic functions to access Airvantage API using the simpler OAuth "Resource Owner" flow.
It uses clj-http.client to connect to the Airvantage server.
A simple GUI to enter the credentials, using the wonderfull seesaw library.
Main namespace, simply binds clicking on the button of the UI to getting an OAuth access token, and querying Airvantage APIs for the logged user details, and the number of systems.
Copyright © 2013 Pierre-Henri Trivier
Distributed under the Eclipse Public License, the same as Clojure.