Skip to content

Instantly share code, notes, and snippets.

@mholubowski
Last active December 25, 2015 18:38
Show Gist options
  • Save mholubowski/7021473 to your computer and use it in GitHub Desktop.
Save mholubowski/7021473 to your computer and use it in GitHub Desktop.
V1 api documentation for notify.IO
# in gemfile
gem 'notifyIO'
# in config
notifier = NotifyIO::Notifier.new(auth_token: '12309jdsjLIJDwdsf')
# in controller or model
notifier.send do |n|
n.type = :alert
n.message = 'Your event just occurred'
#v2
n.permsissions = [:a, :b]
n.critical? = true
n.category = 'bug'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment