Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonahuelgomez committed Feb 28, 2018
1 parent da3b84c commit 6f266c2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

Use to send push notifications to Exponent Experiences from a Ruby server.

If you have problems with the code in this repository, please file issues & bug reports at https://github.com/expo/expo. Thanks!

## Installation

Add this line to your application's Gemfile:
Expand Down Expand Up @@ -32,7 +30,7 @@ $ gem install exponent-server-sdk
The push client is the preferred way. This hits the latest version of the api.

```ruby
exponent = Exponent::Push::Client.new
client = Exponent::Push::Client.new

messages = [{
to: "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
Expand All @@ -44,7 +42,12 @@ messages = [{
body: "You've got mail"
}]

exponent.publish messages
client.publish messages
```

The complete format of the messages can be found [here.](https://docs.expo.io/versions/v16.0.0/guides/push-notifications.html#http2-api)
The complete format of the messages can be found [here.](https://docs.expo.io/versions/latest/index.html#http2-api)

## Contributing

If you have problems with the code in this repository, please file issues & bug reports. We encourage you
to submit a solution or a failing test to reproduce your issue. Thanks!

0 comments on commit 6f266c2

Please sign in to comment.