Created
February 5, 2017 07:13
-
-
Save grim13b/e46019eb30d2611fed1103c88849edc0 to your computer and use it in GitHub Desktop.
Lambda Python 経由で Hipchat にメッセージを送る例2
This file contains 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
response = requests.post( | |
u'https://api.hipchat.com/v2/room/%s/notification' % os.environ['ROOM_ID'], | |
data=_payload( | |
sender=os.environ['SENDER_NAME'], | |
notify=True, | |
color=notify_color, | |
message_format=u'html', | |
message=message_body), | |
headers=_header(os.environ['AUTH_TOKEN'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment