Module: Frontapp::Client::Topics

Included in:
Frontapp::Client
Defined in:
lib/frontapp/client/topics.rb

Instance Method Summary collapse

Instance Method Details

#get_topic_conversations(topic_id, params = {}) ⇒ Object

Parameters Name Type Description


topic_id string Id of the requested topic


Allowed params: Name Type Description


q object (optional) Search query. q.statuses array (optional) List of the statuses of the conversations you want to list




17
18
19
20
# File 'lib/frontapp/client/topics.rb', line 17

def get_topic_conversations(topic_id, params = {})
  cleaned = params.permit({ q: [:statuses] })
  list("topics/#{topic_id}/conversations", cleaned)
end