MicroPython


MicroPython-pushsafer aims at providing comprehensive MicroPython bindings for the API of the Pushsafer Notification Service

USAGE: exactly the same way as in python-pushsafer. Using pushsafer in micropython is painless.

Forked from: https://github.com/appzer/python-pushsafer

Installation

You can install it directly from GitHub:

bash

git clone https://github.com/perr0viej0/micropython-pushsafer.git\

cd python-pushsafer

GitHub: https://github.com/perr0viej0/micropython-pushsafer

Overview

micropython

from pushsafer import Client

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

Params

micropython

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

For more information about replacing values (title, message, icon, icon color, sound, vibration) in your push notification, check out our API description!


© 2016 - 2024 Pushsafer.com, All rights reserved.