Chatwork integration for Django
Project description
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 = 'chatwork.backends.http.UrllibBackend' # default if DEBUG = False # if DEBUG = True, the value set 'chatwork.backends.dummy.DummyBackend' as default CHATWORK_API_FAIL_SILENTLY = None # default
Usage
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
Project details
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.6.0.tar.gz
(11.3 kB
view details)
File details
Details for the file django-chatwork-0.6.0.tar.gz
.
File metadata
- Download URL: django-chatwork-0.6.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00334deeb4a2eab17c8c58299e43825f8e90a6b3c286f57cebc8ab865fae99d5 |
|
MD5 | 0b84a0bc1d0124e42b77cf35112e0138 |
|
BLAKE2b-256 | 488542299ffd15b1c7ec510f4e482289d4dec8af88e606c8d00c8e31496531be |