Simple Python library for the HipChat API v1
Project description
# hipchat_notif
hipchat_notif is [HipChat](https://www.hipchat.com) client library for sending notification using API v1.
## Python version
3.4
## Dependencies
- requests
## Sample Code
```python
from hipchat_notif import *
TOKEN = "AUTH_TOKEN" # Get token from https://hipchat.com/admin/api
ROOM_ID = 10000
NOTIFICATION_NAME = "NOTIFICATOR"
# Create a new instance.
notif = HipchatNotificator(TOKEN)
notif.notification_name = NOTIFICATION_NAME
notif.room = ROOM_ID
# Send Alert notification
notif.alert("Alert")
# Send Ok message
notif.ok("Not Alert")
# Send message
notif.message("Message")
# Send Notification
notif.notif("Notification")
```
### Correspondence table
Method | Notify | Color
:----: | :----: | :----:
alert() | True | red
ok() | False | green
message() | False | yellow
notif() | True | gray
hipchat_notif is [HipChat](https://www.hipchat.com) client library for sending notification using API v1.
## Python version
3.4
## Dependencies
- requests
## Sample Code
```python
from hipchat_notif import *
TOKEN = "AUTH_TOKEN" # Get token from https://hipchat.com/admin/api
ROOM_ID = 10000
NOTIFICATION_NAME = "NOTIFICATOR"
# Create a new instance.
notif = HipchatNotificator(TOKEN)
notif.notification_name = NOTIFICATION_NAME
notif.room = ROOM_ID
# Send Alert notification
notif.alert("Alert")
# Send Ok message
notif.ok("Not Alert")
# Send message
notif.message("Message")
# Send Notification
notif.notif("Notification")
```
### Correspondence table
Method | Notify | Color
:----: | :----: | :----:
alert() | True | red
ok() | False | green
message() | False | yellow
notif() | True | gray
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
hipchat_notif-0.2.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for hipchat_notif-0.2.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64873e08a87e8470fe346cb300b0a508bcc3daddd2978a064c49963e93dd369a |
|
MD5 | a2d92682b61430a503662a375f314a30 |
|
BLAKE2b-256 | 50403a7f637e4e81f8679354b520baaa46ccd3ccbdd16837904afa5b7e5de819 |