#Installs the gems etc we need
gem install rest-client json --no-rdoc --no-ri
#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_bot", "password": "REinforce12334" }' \
192.168.2.71/api/account/sessions > tokens
#export
echo HTH_ACCOUNT_KEY=91a1ed362743fb4ba3e1f6c8dc140f55 >> ~/.bash_profile
echo HTH_COMPANY_KEY=fc637bfcd8b0d44657c902f582a0d6b3 >> ~/.profilebash_profile\
source ~/.bash_profile