class Podio::NotificationGroup

This class wraps the response from the Get Notifications API call @see developers.podio.com/doc/notifications

Public Class Methods

find(id) click to toggle source

@see developers.podio.com/doc/notifications/get-notification-v2-2973737

# File lib/podio/models/notification_group.rb, line 17
def find(id)
  member Podio.connection.get("/notification/#{id}/v2").body
end
find_all(options={}) click to toggle source

@see developers.podio.com/doc/notifications/get-notifications-290777

# File lib/podio/models/notification_group.rb, line 10
def find_all(options={})
  list Podio.connection.get { |req|
    req.url('/notification/', options)
  }.body
end
mark_as_viewed_by_ref(ref_type, ref_id) click to toggle source

@see developers.podio.com/doc/notifications/mark-notifications-as-viewed-by-ref-553653

# File lib/podio/models/notification_group.rb, line 22
def mark_as_viewed_by_ref(ref_type, ref_id)
  Podio.connection.post("/notification/#{ref_type}/#{ref_id}/viewed").status
end