lib/rumour-ruby/client.rb in rumour-ruby-0.0.6 vs lib/rumour-ruby/client.rb in rumour-ruby-0.0.7
- old
+ new
@@ -18,12 +18,12 @@
def send_text_message(sender, recipient, body)
recipient = Rumour.configuration.intercept_text_message_recipient || recipient
post('/text_messages', text_message: { from: sender, recipient: recipient, body: body })
end
- def send_push_notification(platform, recipient, options= {})
+ def send_push_notification(recipient, options= {})
recipient = Rumour.configuration.intercept_push_notification_recipient || recipient
- post('/push_notifications', push_notification: { platform: platform, recipient: recipient }.merge(options))
+ post('/push_notifications', push_notification: { recipient: recipient }.merge(options))
end
private
def post(url, params = {}, headers = {})