python-pushsafer

Comprehensive bindings for the Pushsafer.com notification service


Keywords
push, notification, pushnotification, ios, android, windows, browser, api, android, desktop, ios, ipad, iphone, phone, pushnotification, pushnotifications, pushsafer, python, win10, windows
License
GPL-3.0-only
Install
pip install python-pushsafer==0.4

Documentation

Pushsafer.com

python-pushsafer aims at providing comprehensive Python bindings for the API of the Pushsafer Notification Service as documented here.

Forked from and original created by: [Thibauth](https://github.com/Thibauth/python-pushover)

Installation

You can install it directly from GitHub:

git clone https://github.com/appzer/python-pushsafer.git
cd python-pushsafer
pip install .

Overview

After being imported, the module must be initialized by calling the init function with a valid private key. Thus, a typical use of the pushsafer module looks like this:

from pushsafer import init, Client

init("<privatekey>")
Client("").send_message("Message", "Hello", "323", "1", "4", "2", "https://www.pushsafer.com", "Open Pushsafer", "0", "2", "60", "600", "1", "", "", "")

You can also pass the privatekey optional argument to Client to initialize the module at the same time:

from pushsafer import Client

client = Client("", privatekey="<privatekey>")
client.send_message("Message", "Hello", "323", "1", "4", "2", "https://www.pushsafer.com", "Open Pushsafer", "0", "1", "120", "1200", "0", "", "", "")

Params

client.send_message("Message", "Title", "Device or Device Group ID", "Icon", "Sound", "Vibration", "URL", "URL Title", "Time2Live", "Priority", "Retry", "Expire", "Answer", "Image 1", "Image 2", "Image 3")

API

You can access the full API documentation here.