Sha256: f80237beb861c8ad0d3c67688f2e2f7fc9a7bf63012419b8336705b3a86e3297

Contents?: true

Size: 315 Bytes

Versions: 24

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true
module DiscourseApi
  module API
    module Email
      def email_settings
        response = get("/admin/email.json")
        response.body
      end

      def list_email(filter)
        response = get("/admin/email/#{filter}.json")
        response.body
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
discourse_api-2.0.1 lib/discourse_api/api/email.rb
discourse_api-2.0.0 lib/discourse_api/api/email.rb
discourse_api-1.1.0 lib/discourse_api/api/email.rb
discourse_api-1.0.0 lib/discourse_api/api/email.rb
discourse_api-0.48.1 lib/discourse_api/api/email.rb
discourse_api-0.48.0 lib/discourse_api/api/email.rb
discourse_api-0.47.0 lib/discourse_api/api/email.rb
discourse_api-0.46.0 lib/discourse_api/api/email.rb
discourse_api-0.45.1 lib/discourse_api/api/email.rb
discourse_api-0.45.0 lib/discourse_api/api/email.rb
discourse_api-0.44.0 lib/discourse_api/api/email.rb
discourse_api-0.43.1 lib/discourse_api/api/email.rb
discourse_api-0.43.0 lib/discourse_api/api/email.rb
discourse_api-0.42.0 lib/discourse_api/api/email.rb
discourse_api-0.41.0 lib/discourse_api/api/email.rb
discourse_api-0.40.0 lib/discourse_api/api/email.rb
discourse_api-0.39.3 lib/discourse_api/api/email.rb
discourse_api-0.39.2 lib/discourse_api/api/email.rb
discourse_api-0.39.1 lib/discourse_api/api/email.rb
discourse_api-0.39.0 lib/discourse_api/api/email.rb