OneSignal API Wrapper for Python
Project description
# OneSignal-Notifications
![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
[![PyPI](https://img.shields.io/pypi/v/onesignal-notifications.svg?style=flat-square&colorB=dfb317)](https://pypi.org/project/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
```python
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](https://lucas.hild.de)
This project is licensed under the MIT License - see the LICENSE file for details
![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
[![PyPI](https://img.shields.io/pypi/v/onesignal-notifications.svg?style=flat-square&colorB=dfb317)](https://pypi.org/project/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
```python
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](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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 485a05c110e551ab18f543783174401c526a84e0abc9f88c7e462e6070d2fec4 |
|
MD5 | 09757334d784b2c1f8c2239cb2f0757f |
|
BLAKE2b-256 | e1e3b30d000cc0584c808ec1386c5e0560768bb1d61ecead084499752ff43a1c |