lib/rumour-ruby/client.rb in rumour-ruby-0.0.4 vs lib/rumour-ruby/client.rb in rumour-ruby-0.0.5
- old
+ new
@@ -17,11 +17,11 @@
def send_text_message(sender, recipient, body)
post('/text_messages', text_message: { from: sender, recipient: recipient, body: body })
end
- def send_push_notification(platform, recipient, data)
- post('/push_notifications', push_notification: { platform: platform, recipient: recipient, data: data })
+ def send_push_notification(platform, recipient, options= {})
+ post('/push_notifications', push_notification: { platform: platform, recipient: recipient }.merge(options))
end
private
def post(url, params = {}, headers = {})