Skip to main content
Travis CI COVERALLS Code Climate Issue Count LICENSE MIT

django-chatwork is Chatwork integration for Django.

Requirement

  • Python >= 3.5

  • Django >= 1.11

Quick start

  1. 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
  2. Add “chatwork” to INSTALLED_APPS

    INSTALLED_APPS = [
        ...
        'chatwork',
        ...
    ]
  3. 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
  4. 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

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.3.0.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file django-chatwork-0.3.0.tar.gz.

File metadata

File hashes

Hashes for django-chatwork-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c4e26ec89f9b4ac063cfb3d537b75ae2ef860fdcfd40b67019a9993ac5ddd1e3
MD5 9cbc83238b902bba4c1790b917b204ca
BLAKE2b-256 aee851b417c44961091a1f674b58f6182a3b3dce0e9f341a715c70b7098844c7

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.0

1 file

0.5.0

2 files

0.4.0

1 file

This release

0.3.0 This release

1 file

0.2.0

1 file

0.1.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page