Super simple wrapper for the HipChat API, with Python3 support
Project description
Description
Easy peasy wrapper for the HipChat API. Exposes core URI endpoint wrapper and some basic methods for common integrations.
Dependencies
None beyond the Python standard library.
Usage
Install:
pip install python-simple-hipchat
Instantiate:
import hipchat hipster = hipchat.HipChat(token=YourHipChatToken)
Request a URI endpoint as described in the HipChat API docs:
hipster.method(url='method/url/', method="GET/POST", parameters={'name':'value', })
Example methods:
# List rooms hipster.method('rooms/list') # Post a message to a HipChat room hipster.method('rooms/message', method='POST', parameters={'room_id': 8675309, 'from': 'HAL', 'message': 'All your base...'})
Two handy shortcut methods:
# List rooms, print response JSON print hipster.list_rooms() # POST a message to a room, print response JSON print hipster.message_room(8675309, 'HAL', 'All your base...')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for python-simple-hipchat-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dd3f3c90f7b8d08ae4f9f3c9991a880079185be4ce5c74da8e12dfec3d05739 |
|
MD5 | 5183e218e5343c2932279c6c3f136ba1 |
|
BLAKE2b-256 | 43d79a18d992c53da06255f286675f9574074640a0b0c0b7a6f6c479d7975d6d |