#Installs the gems etc we need
gem install rest-client json
#Set an environment variable for the Deveo API base URL
echo HTH_ENDPOINT=http://192.168.2.71/api/ >> ~/.bash_profile
#Obtain the company and account keys required for authentication and access control
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.deveo.v1" \
-d '{"company": "hth", "login": "admin", "password": "admin" }' \
192.168.2.71/api/account/sessions > tokens