Skip to main content

Simple Python library for the HipChat API v1

Project description

# hipchat_notif

hipchat_notif is [HipChat]( client library for sending notification using API v1.

## VER. 0.2.3

Added the ability to change the message format.(Thanks to
message_format: Determines how the message is treated by our server and rendered inside HipChat applications.
html - Message is rendered as HTML and receives no special treatment. Must be valid HTML and entities
must be escaped (e.g.: & instead of &). May contain basic tags: a, b, i, strong, em, br, img,
pre, code, lists, tables. Special HipChat features such as @mentions, emoticons, and image previews
are NOT supported when using this format.
text - Message is treated just like a message sent by a user. Can include @mentions, emoticons, pastes,
and auto-detected URLs (Twitter, YouTube, images, etc)
## Python version


## Dependencies

- requests>=2.3

## Sample Code

from hipchat_notif import *

TOKEN = "AUTH_TOKEN" # Get token from
ROOM_ID = 10000

# Create a new instance.

notif = HipchatNotificator(TOKEN)
notif.notification_name = NOTIFICATION_NAME = ROOM_ID

# Send Alert notification
notif.alert("Alert", message_format = "text")

# Send Ok message
notif.ok("Not Alert", message_format = "html")

# Send message

# Send Notification

### Correspondence table

|Method | Notify | Color
:----: | :----: | :----:
alert() | True | red
ok() | False | green
message() | False | yellow
notif() | True | gray

Project details

Download files

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

Source Distributions (8.9 kB view hashes)

Uploaded source

hipchat_notif-0.2.3.tar.gz (4.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page