Update script to use the heroku api