Module: DiscourseApi::API::UserActions

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

Instance Method Summary collapse

Instance Method Details

#user_replies(username) ⇒ Object



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

def user_replies(username)
  params = { username: username, filter: "5" }
  response = get("/user_actions.json", params)
  response.body["user_actions"]
end

#user_topics_and_replies(username) ⇒ Object



11
12
13
14
15
# File 'lib/discourse_api/api/user_actions.rb', line 11

def user_topics_and_replies(username)
  params = { username: username, filter: "4,5" }
  response = get("/user_actions.json", params)
  response.body["user_actions"]
end