Director of Cloud Engineering @ Team8Solutions, Freelancer
Send Hipchat Notifications Using Python
There might be scenarios where you want to send hipchat notifications programatically.
Following python script will help you to create notifications in 3 simple steps.
* Image credit: google images
Step 1:
Generate your auth token from your hipchat account.
Hipchat -> Account Settings -> API Access
#!/usr/bin/env python3.5importhipchat# For successful notifhipchat.notify("Deployment started","Vishnu","green")# If you want error notifhipchat.notify("Deployment failed","Vishnu","red")