Created
April 9, 2015 14:51
-
-
Save toast38coza/ca0f385d4ebafc9e2350 to your computer and use it in GitHub Desktop.
Send a message to a room in hipchat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def speak(message, room): | |
| from requests.packages import urllib3 | |
| urllib3.disable_warnings() | |
| token = '...' | |
| url = "https://api.hipchat.com/v2/room/{1}/notification?auth_token={0}" . format (token, room) | |
| requests.post(url, {"message":message}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment