Sha256: 9589a2829c40e695b57021e1787264f8af35a53ec915c0773ca9fdaddf958431

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true
module DiscourseApi
  module API
    module Notifications
      def notifications(params = {})
        params = API.params(params).optional(:username, :recent, :limit, :offset, :filter)

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse_api-2.0.1 lib/discourse_api/api/notifications.rb
discourse_api-2.0.0 lib/discourse_api/api/notifications.rb