skip to navigation
skip to content

yaosac 1.0.1

Yet another OneSignal API Client

I don’t like exisiting libraries.

This client is a mapping of the RESTful server API. There is a method for every API end-point with the corresponding arguments. Only two methods raise an exception create_notification and view_notification. In all the other cases you will get the errors from the API in the response.

Client’s methods names are the end-point name in lower case with spaces replaced by underscores. Depending on the method you call you will need an User Auth Key or an App Auth Key or an App Id. They can be set as environment variables ‘OS_USER_AUTH_KEY’, ‘OS_APP_AUTH_KEY’ and ‘OS_APP_ID’ or assigned to the client via app_auth_key, user_auth_key and app_id attributes.


pip install yaosac


import yaosac

# Send a notification

# Get a notification
notification_id = 'a-notification-id-you-keep-somewhere'
notification = yaosac.client.view_notification(notification_id)


python3 test
File Type Py Version Uploaded on Size
yaosac-1.0.1-py2-none-any.whl (md5) Python Wheel py2 2017-09-08 4KB