Installation is done using pip
$ pip install spate
If you want the latest possible version, grab it directly from the git repo. However, be careful as this may be broken.
$ pip install git+https://github.com/spateio/spate-python.git
import spate
client = spate.Spate('app_key', 'app_secret')
client.push('Example message', ['channel1', 'second_channel'])
Pushes message to all channels
Parameters: |
|
---|
Returns a signature made using an app’s secret key
Returns a Spate object when given a URL of the format https://<app_key>:<app_secret>@api.spate.io