Module: Mastodon::REST::Notifications

Includes:
Utils
Included in:
API
Defined in:
lib/mastodon/rest/notifications.rb

Instance Method Summary collapse

Methods included from Utils

#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object

Instance Method Details

#notificationsMastodon::Collection<Mastodon::Notification>

Get a list of notifications for the authenticated user



13
14
15
16
# File 'lib/mastodon/rest/notifications.rb', line 13

def notifications
  perform_request_with_collection(:get, '/api/v1/notifications', {},
                                  Mastodon::Notification)
end