Module: DiscourseApi::API::Email

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

Instance Method Summary collapse

Instance Method Details

#email_settingsObject



5
6
7
8
# File 'lib/discourse_api/api/email.rb', line 5

def email_settings
  response = get("/admin/email.json")
  response.body
end

#list_email(filter) ⇒ Object



10
11
12
13
# File 'lib/discourse_api/api/email.rb', line 10

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