Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Comprehensive bindings for the Pushsafer.com notification service

Project description

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", "", "", "")

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", "", "", "")

Params

client.send_message(“Message”, “Title”, “Device or Device Group ID”, “Icon”, “Sound”, “Vibration”, “URL”, “URL Title”, “Time2Live”, “Image 1”, “Image 2”, “Image 3”)

API

You can access the full API documentation here.

Contributors

Changes

0.3 (2017-11-28)

ignore verifying the SSL certficate (trust self signed certificates)

0.2 (2017-02-12)

Add new parameters (url, url title, time2live, image 1-3), minor bugfixes

0.1 (2016-09-13)

Initial Release

Project details


Release history Release notifications

This version
History Node

0.3

History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
python-pushsafer-0.3.tar.gz (15.3 kB) Copy SHA256 hash SHA256 Source None Nov 28, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page