Easy peasy wrapper for HipChat's v1 API (modified version and credits to kurttheviking)
Project description
Description
Easy peasy wrapper for the HipChat API v1. Exposes core URI endpoint wrapper and some basic methods for common integrations.
Dependencies
None beyond the Python standard library.
Usage
Install:
pip install python-hipchat-v1
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:
# 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...'}) # Get history from a room hipster.room_history(room_id='', date=)
Changelog
v0.3.x
Added shortcut method for listing users (thanks @Raizex)
Added shortcut method for finding user by name (thanks @Raizex)
Added shortcut method for finding room by name (thanks @Raizex)
Added trove classifiers (thanks @ghickman)
v0.2.x
Added Python 3 support without losing support for Python 2 (thanks @pimterry)
Expose timeout for safer synchronous use (thanks @zachsnow)
v0.1.x
Added shortcut method for messaging a room
Added shortcut method for listing rooms
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python_hipchat_v1-0.3.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7b186b4dcdd623dc4659ae9aa6c07c6a11d2932eee80e575805ea99914bb732 |
|
MD5 | f9c63898c9bf01c91e0a8fa44b6bbc8e |
|
BLAKE2b-256 | fe67cf2b483f12014a623fe03382e9a4119fd0ab449deecbf3e2ba2c85b72e26 |