Skip to content

Instantly share code, notes, and snippets.

@toast38coza
Created April 9, 2015 14:51
Show Gist options
  • Save toast38coza/ca0f385d4ebafc9e2350 to your computer and use it in GitHub Desktop.
Save toast38coza/ca0f385d4ebafc9e2350 to your computer and use it in GitHub Desktop.
Send a message to a room in hipchat
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