Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Pushalot

Wrapper around pushalot.com API.

Pushalot is a platform for receiving custom push notifications to connected devices running Windows Phone or Windows 8. Custom means that those push notifications can be sent from virtually any source, as long as that source can interact with our open REST API.

Installation

pip install pushalot

Usage

from pushalot import Pushalot
api = Pushalot(token='your-token-here')
api.send(title='Testing', body='Hey!')

Or using factory:

from pushalot import PushalotFactory
api = PushalotFactory.create(token='your-token-here')

You can provide custom 'transport' or API version. Right now there is only one API version, and one transport:

from pushalot import PushalotFactory
from pushalot.transport import HTTPTransport
from pushalot.apis import APILatest
api = PushalotFactory(
    token='your-token-here',
    api=APILatest(),
    transport=HTTPTransport()
)

This code snippet do the same that above snippets, but shows how some parts can be changed to suit your needs.

Tests

python setup.py test

coverage:

pip install coverage
coverage run -m unittest discover

License

Released under MIT License. See the bundled LICENSE file for details.

About

API wrapper around pushalot service

Resources

License

Releases

No releases published

Packages

No packages published

Languages