OneSignal API Wrapper for Python
Project description
OneSignal-Notifications
OneSignal-Notifications is a wrapper for the OneSignal API which allows you to send notifications for Android, iOS and Web App.
Installation
pip install onesignal-notifications
Usage
from onesignal import OneSignal, SegmentNotification
client = OneSignal("MY_APP_ID", "MY_REST_API_KEY")
notification_to_all_users = SegmentNotification(
{
"en": "Hello from OneSignal-Notifications"
},
included_segments=SegmentNotification.ALL
)
Meta
Lucas Hild - https://lucas-hild.de
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for onesignal-notifications-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c4348a59bebe46c627d4da294b741fc29459fd51190efed4eb100172040cd38 |
|
MD5 | 24eb0ddad51ce338ce2490f27f98302e |
|
BLAKE2b-256 | f9dbd51cb6f68fcf61eae4d9acbd53311dc0a80331b653a1c45ecc1cb2efa7a2 |