python-zeropush
Python wrapper for Zeropush API v1.5.
Note
python-zeropush is under heavy development... not. But it's very green indeed and in alpha stage, many things will be improved, so use it at you own peril.
Getting up and running
pip install python-zeropush
from zeropush.api import ZeropushAPIClient
zeropush = ZeropushAPIClient(server_token=<your_server_token>)
zeropush.verify_crendentials()
ZeropushAPIClient Methods
Verify Credentials
Verifies whether credentials have been configured properly.
from zeropush.api import ZeropushAPIClient
result = ZeropushAPIClient.verify_crendentials(auth_token="<your_app_or_server_token>")
# or
zeropush = ZeropushAPIClient(server_token=<your_server_token>)
result = zeropush.verify_crendentials()
Register
Register a device token for sending push notifications. Optionally subscribe the token to a channel.
Notify
Sends a notification an array of device tokens.
Unregister
Unregisters a previously registered device token.
Inactive Tokens
Returns an array of device tokens along with the time each token was marked inactive.
Set Badge
Development
git clone git@github.com:theskumar/python-zeropush.git
make setup
make test