Skip to main content

A Python SDK for OneSignal (http://onesignal.com)

Project description

A Python SDK for OneSignal (https://onesignal.com/). Documentation for OneSignal API is available at https://documentation.onesignal.com/docs/server-api-overview.

Obtaining User Rest API key and App REST API key

See details here https://documentation.onesignal.com/docs/server-api-overview

Installing dependencies

Create a VirtualEnv and install dependencies from requirements.txt by running (from the root):

> pip install -r requirements.txt

Setup

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_app_id, your_basic_auth_key)

Tests

Tests are located under /tests and these also kind of show some examples on how to use the library.

Running tests

Go to this directory /tests and then run

> py.test

Contributors

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

OneSignalPythonSDK-0.1.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file OneSignalPythonSDK-0.1.tar.gz.

File metadata

File hashes

Hashes for OneSignalPythonSDK-0.1.tar.gz
Algorithm Hash digest
SHA256 ffaf893a0fdff7251beee30f0ea7c419a7cebb3905d9dfe8e9173f534a9ff0b0
MD5 3f449afabe828bd2dfcaaaa1e80fdf73
BLAKE2b-256 e49c5ac150afd91dbe049f52dc68d77bc621d1a19ab7756389dd4420a8f90b0f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page