A Python SDK for OneSignal (https://onesignal.com/). Documentation for OneSignal API is available at https://documentation.onesignal.com/docs/server-api-overview.
See details here https://documentation.onesignal.com/docs/server-api-overview
Create a VirtualEnv and install dependencies from requirements.txt by running (from the root):
> pip install -r requirements.txt
You can install the package by running
> python setup.py install
Once installed, to get started, you can do:
import one_signal_sdk one_signal = one_signal_sdk.OneSignalSdk(YOUR_APP_ID, AUTH_TOKEN_HERE) one_signal.get_players(your_basic_auth_key)
Tests are located under /tests and these also kind of show some examples on how to use the library.
Go to this directory /tests and then run
> py.test
- Zohaib Ijaz <[email protected]>
- Waqas Younas <[email protected]>