class Podio::Notification

@see developers.podio.com/doc/notifications

Public Class Methods

find(id) click to toggle source
# File lib/podio/models/notification.rb, line 28
def find(id)
  member Podio.connection.get("/notification/#{id}").body
end
mark_all_as_viewed() click to toggle source

@see developers.podio.com/doc/notifications/mark-all-notifications-as-viewed-58099

# File lib/podio/models/notification.rb, line 43
def mark_all_as_viewed
  Podio.connection.post("/notification/viewed").status
end
mark_as_viewed(id) click to toggle source

@see developers.podio.com/doc/notifications/mark-notification-as-viewed-22436

# File lib/podio/models/notification.rb, line 33
def mark_as_viewed(id)
  Podio.connection.post("/notification/#{id}/viewed").status
end
mark_as_viewed_by_ref(type, id) click to toggle source

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

# File lib/podio/models/notification.rb, line 38
def mark_as_viewed_by_ref(type, id)
  Podio.connection.post("/notification/#{type}/#{id}/viewed").status
end
star(id) click to toggle source

@see developers.podio.com/doc/notifications/star-notification-295910

# File lib/podio/models/notification.rb, line 48
def star(id)
  Podio.connection.post("/notification/#{id}/star").status
end
unstar(id) click to toggle source

@see developers.podio.com/doc/notifications/un-star-notification-295911

# File lib/podio/models/notification.rb, line 53
def unstar(id)
  Podio.connection.delete("/notification/#{id}/star").status
end