OneSignal-Java-SDK: Simple OneSignal Java REST client

OneSignal provides Push Notification delivery and automation. This SDK is its unofficial Java REST client library.

Usage

All you need to do is call a method from com.currencyfair.onesignal.OneSignal class.

This SDK provides easy to use builders for Notification, App, Session and Device objects.

All 300+ status codes returned from OneSignal will be thrown as an unchecked com.currencyfair.onesignal.OneSignalException.

Build

To build:

$ git clone [email protected]:CurrencyFair/OneSignal-Java-SDK.git
$ cd OneSignal-Java-SDK/
$ mvn install

Binaries

Binaries and dependency information for Maven, Ivy, Gradle and others can be found at http://search.maven.org.

Replace x.y.z with Maven Central or current SNAPSHOT version.

Example for Gradle:

compile 'com.currencyfair:onesignal:x.y.z'

and for Maven:

<dependency>
    <groupId>com.currencyfair</groupId>
    <artifactId>onesignal</artifactId>
    <version>x.y.z</version>
</dependency>

and for Ivy:

<dependency org="com.currencyfair" name="onesignal" rev="x.y.z" />

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

License

This work is copyright by CurrencyFair (https://currencyfair.com) and licensed under the terms of Apache License, Version 2.0.