Skip to content

Instantly share code, notes, and snippets.

@shiumachi
Created January 2, 2014 08:51
Show Gist options
  • Save shiumachi/8216537 to your computer and use it in GitHub Desktop.
Save shiumachi/8216537 to your computer and use it in GitHub Desktop.
HipChatに書きこむ
# 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