Module: DiscourseApi::API::Notifications

Included in:
Client
Defined in:
lib/discourse_api/api/notifications.rb

Instance Method Summary collapse

Instance Method Details

#notifications(params = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/discourse_api/api/notifications.rb', line 5

def notifications(params = {})
  params = API.params(params).optional(:username, :recent, :limit, :offset, :filter)

  response = get("/notifications.json", params)
  response[:body]
end