Method: OneSignal::Client#fetch_notifications
- Defined in:
- lib/onesignal/client.rb
#fetch_notifications(page_limit: 50, page_offset: 0, kind: nil) ⇒ Object
30 31 32 33 34 |
# File 'lib/onesignal/client.rb', line 30 def fetch_notifications page_limit: 50, page_offset: 0, kind: nil url = "notifications?limit=#{page_limit}&offset=#{page_offset}" url = kind ? "#{url}&kind=#{kind}" : url get url end |