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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-hipchat-v1-0.3.5.tar.gz.
File metadata
- Download URL: python-hipchat-v1-0.3.5.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5fdf83a3b7d57d0f1de0534081532175242dfc9c73dd6dec45aae6791d12d59
|
|
| MD5 |
2f2f95afd5c8ace31a33f29012e21942
|
|
| BLAKE2b-256 |
06ff721f04e5ba082042de78f667ae88a69fe7b39c8a9f49889f86cbb0eebbdf
|
File details
Details for the file python_hipchat_v1-0.3.5-py2-none-any.whl.
File metadata
- Download URL: python_hipchat_v1-0.3.5-py2-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d6733818f3cc42370600bd302dba225cf1d544b0dd67be87c33737fb51e7127
|
|
| MD5 |
c9d65df15b77de4b0436cea844bbd9a7
|
|
| BLAKE2b-256 |
28902535281cc9f229082095331d49f2daa2048e51d3cfa33874a1234aa66200
|