ptgamr / kinto-pusher

Plug Kinto notifications with Pusher.com

Home Page:http://kinto.github.io/kinto-pusher/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kinto Pusher

Plug Kinto notifications into Pusher.com.

Install

pip install kinto-pusher

Depending on your environment, it might be necessary to install the ffi system library with sudo apt-get install libffi-dev.

Setup

In the Kinto-based application settings:

kinto.includes = kinto_pusher

pusher.app_id = <pusher-app-id>
pusher.key = <pusher-key>
pusher.secret = <pusher-secret>

kinto.event_listeners = pusher
kinto.event_listeners.pusher.use = kinto_pusher.listener

# Optional customization
# kinto.event_listeners.pusher.channel = {bucket_id}-{collection_id}-{resource_name}
# kinto.event_listeners.pusher.for_actions = create update delete
# kinto.event_listeners.pusher.for_resources = bucket collection group record

TODO

  • Add view for authenticated channels

About

Plug Kinto notifications with Pusher.com

http://kinto.github.io/kinto-pusher/

License:Other


Languages

Language:Python 59.2%Language:JavaScript 29.4%Language:HTML 6.5%Language:Makefile 4.6%Language:CSS 0.3%