README.md in syncano-3.1.1.beta4 vs README.md in syncano-3.1.1.beta5

- old
+ new

@@ -8,19 +8,19 @@ ## Installation Add this line to your application's Gemfile: - gem 'syncano', '~> 3.1.1.beta4' + gem 'syncano', '~> 3.1.1.beta5' And then execute: $ bundle Or install it yourself as: - $ gem install syncano -v 3.1.1.beta4 --pre + $ gem install syncano -v 3.1.1.beta5 --pre At the end generate initializer with api key and api instance name: $ rails g syncano:install @@ -307,9 +307,29 @@ To delete callback from the queue just call remove_callback method: ```ruby client.remove_callback(:callback_name) +``` + +To list notifications ie. after connection use all method: + +```ruby +client.notifications.all +``` + +#### Sending notifications + +To send notification just create new notification object: + +```ruby +client.notifications.create(key: 'value') +``` + +You can also pass additional attributes specified for api 'notification.send' method: + +```ruby +client.notifications.create(key: 'value', api_client_id: 512) ``` ### Errors and exceptions This library does not implement any validations. All errors from the api will cause throwing an exception.