django-chatwork is Chatwork integration for Django.
Requirement
Python >= 3.5
Django >= 1.11
Quick start
Install by pip
# instal from PyPI pip install django-chatwork # install from github master branch pip install -U https://github.com/kacchan822/django-chatwork/archive/master.tar.gz
Add “chatwork” to INSTALLED_APPS
INSTALLED_APPS = [ ... 'chatwork', ... ]Set Valuse in settings
# You have to set this CHATWORK_API_TOKEN = 'youre api token' # You don't have to usually set this CHATWORK_API_ENDPOINT_BASE = 'https://api.chatwork.com/v2' # default CHATWORK_API_BACKEND = 'http' # default if DEBUG = False # if DEBUG = True, the value set 'dummy' as default CHATWORK_API_FAIL_SILENTLY = None # defaultUse age
from chatwork import send_message ... # send message to room_id = 123456 send_chatwork('message text hear', 123456) # send message to room_id = 123456 with [To:] for all members send_chatwork('message text hear', 123456, to_all=True) # send message to room_id = 123456 with INFO format # INFO format contains [To:] for all users send_chatwork('message text hear', 123456, title='info title') ...
Acknowledgements
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-chatwork-0.1.2.tar.gz
(8.0 kB
view details)
File details
Details for the file django-chatwork-0.1.2.tar.gz.
File metadata
- Download URL: django-chatwork-0.1.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1863c7acc45d46ed21baf0ec83c5ec46ff1893b59f4c0b1dbea17517ea76283a
|
|
| MD5 |
15934c7ebe693155c26268e4628927a7
|
|
| BLAKE2b-256 |
6d8662d370915e7d78a170bd21384b135d3956f062b248678f25181939639f95
|