Created
January 2, 2014 08:51
-
-
Save shiumachi/8216537 to your computer and use it in GitHub Desktop.
HipChatに書きこむ
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
# TOKEN, ROOM_NAME は適宜置き換え | |
# 事前に pip install hypchat でパッケージをインストールしておくこと | |
import hypchat | |
hc = hypchat.HypChat(TOKEN) | |
for i in hc.rooms()['items']: | |
if i['name'] == ROOM_NAME: | |
room = hc.get_room(i['id']) | |
room.message("テスト投稿") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment