Skip to main content

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

Project description

OneSignal Python SDK
=====================

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

Install from pip
------------------------

> pip install onesignal

Setup for develop
------

You can install the package by running

::

> python setup.py install

Once installed, to get started, you can do:

::

from onesignal import OneSignal
one_signal = OneSignal(USER_AUTH_KEY, YOUR_APP_ID)
one_signal.get_players(REST_API_KEY)


USER_AUTH_KEY: Your e-mail -> Api Keys -> User Auth Key

YOUR_APP_ID: Your App -> App settings -> Keys and Id

REST_API_KEY: Your App -> App settings -> Keys and Id

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

- Zohaib Ijaz <zohaibijaz.qc@gmail.com>
- Waqas Younas <waqas.younas@gmail.com>

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

onesignal-0.1.3.tar.gz (7.6 kB view details)

Uploaded Source

File details

Details for the file onesignal-0.1.3.tar.gz.

File metadata

  • Download URL: onesignal-0.1.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for onesignal-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3ebdab88535d806b424e65a31d554b67de63a3b13fd53e4232fe556c9cb79f0d
MD5 af98dbb5cb9e2b294befd7806e6b00cf
BLAKE2b-256 5bf0586d569a4b0f1ce8c7f44e4117e08b0bbc338f195f23b7fd5ae854b1b53a

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