You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/onesignal`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
-
TODO: Delete this and the text above, and describe your gem
5
+
OneSignal is a simple ruby wrapper for the [OneSignal API][osa].
8
6
9
7
## Installation
10
8
@@ -24,24 +22,118 @@ Or install it yourself as:
24
22
25
23
## Usage
26
24
27
-
TODO: Write usage instructions here
25
+
You can find your auth keys and app IDs on the Account Management page when
26
+
you're logged into OneSignal. With those at hand, you can create a client.
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
112
+
Actions supported:
32
113
33
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
114
+
*`client.notifications.all`
115
+
*`client.notifications.all(params)`
116
+
*`client.notifications.find(id)`
117
+
*`client.notifications.track_open(id, params)`
118
+
*`client.notifications.create(params)`
119
+
*`client.notifications.cancel(id)`
34
120
35
121
## Contributing
36
122
37
-
Bug reports and pull requests are welcome on GitHub at https://github.com/coding-chimp/onesignal. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
123
+
Bug reports and pull requests are welcome on [GitHub][gh].
38
124
125
+
This project is intended to be a safe, welcoming space for collaboration, and
126
+
contributors are expected to adhere to the [Contributor Covenant][cc] code of conduct.
39
127
40
128
## License
41
129
42
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
130
+
The gem is available as open source under the terms of the [MIT License][mit].
0 commit comments