Simple Python module for the HipChat API
Simple Python library for the HipChat API <https://www.hipchat.com/docs/api>
.
Standart library and urllib3
2.6, 2.7
Install::
git clone https://github.com/a2design-company/hipster
python setup.py install
Instantiate::
from hipster import Hipster
hipchat = Hipster(Your token)
Call API methods::
hipchat.create_room(name='My room', owner_user_id=1, topic='Hello, room!')
or
hipchat.create_room({
'name': 'My another room',
'owner_user_id': 1,
'topic': 'Hello, room!'
})
Attention:: In methods send_messages()
and set_room_topic()
use the 'sender' argument instead 'from': `
hipchat.send_messages(room_id='your room id', sender='your user id', message='Hello, room!')
or
hip.send_messages({
'sender':'your user id',
'message':'Hello world!',
'room_id':'your room id'})
All available API methods::
create_room()
delete_room()
get_messages()
get_rooms_list()
send_messages()
set_room_topic()
get_room_details()
create_user()
delete_user()
get_users_list()
get_users_details()
undelete_user()
update_user_info()