Skip to main content

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

v0.1.x

  • Added shortcut method for messaging a room
  • Added shortcut method for listing rooms

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-hipchat-v1, version 0.3.5
Filename, size File type Python version Upload date Hashes
Filename, size python_hipchat_v1-0.3.5-py2-none-any.whl (4.8 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size python-hipchat-v1-0.3.5.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page