Skip to content

Instantly share code, notes, and snippets.

@bjorntheart
Created July 8, 2017 15:36
Show Gist options
  • Select an option

  • Save bjorntheart/659bc0584dcf77ac9b231ae71b671074 to your computer and use it in GitHub Desktop.

Select an option

Save bjorntheart/659bc0584dcf77ac9b231ae71b671074 to your computer and use it in GitHub Desktop.
from pusher import Pusher
pusher = Pusher(
app_id=u'APP_ID',
key=u'APP_KEY',
secret=u'APP_SECRET',
cluster=u'APP_CLUSTER'
)
pusher.trigger(u'test_channel', u'my_event', {u'message': u'hello world'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment