皮松希普察
python-hipchat的Python项目详细描述
hipchat的命令行工具
安装
pip install python-hipchat && hc
配置
如果hc命令找不到配置文件,它将指导您创建配置文件。默认配置在~/.hipchat.cfg中。
配置文件的格式为:
[hipchat] api_token = abc123 room_name = cool_room ; This is the default room alias, one of the room aliases listed below.
[rooms] cool_room = 123
[message_sender] alias = ryan color = random ; gray, green, purple, red, yellow, random
用法
简单的消息发送:
hc “Hi, from Python-HipChat”
更改发件人的姓名并指定房间别名:
hc –user “Dr. Nick” –room cool_room “Hi, everybody!”