lib/rumour-ruby/client.rb in rumour-ruby-0.0.3 vs lib/rumour-ruby/client.rb in rumour-ruby-0.0.4
- 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 deliver_push_notification(platform, recipient, data)
- post('/push_notifications', platform: platform, recipient: recipient, data: data)
+ def send_push_notification(platform, recipient, data)
+ post('/push_notifications', push_notification: { platform: platform, recipient: recipient, data: data })
end
private
def post(url, params = {}, headers = {})