This Gem is a Ruby wrapper for the Onesignal API which provides Push Notification delivery and automation.
This project hasn't been released yet. It's under development.
To use the API client it is necessary to set the server APP_ID. You can find the APP_ID on the settings page of your app.
Onesignal.configure do |config|
config.app_id = 'APP_ID'
end
Then the client will be ready to receive method calls on the Onesignal module.
result = Onesignal.add_device(device_type: 0, identifier: 'ce777617da7f548fe7a9ab6febb56')
Onesignal.notify(message: 'Test notification', devices_ids: result.device_id)
Methods supported by this gem and their parameters can be found in the API Reference
- Fork it ( https://github.com/[my-github-username]/onesignal/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request