module Frontapp::Client::Tags
Public Instance Methods
create_tag!(params = {})
click to toggle source
Allowed attributes: Name Type Description
name string Name of the tag to create
# File lib/frontapp/client/tags.rb, line 23 def create_tag!(params = {}) cleaned = params.permit(:name) create("tags", cleaned) end
delete_tag!(tag_id)
click to toggle source
Parameters Name Type Description
tag_id string Id of the requested tag
# File lib/frontapp/client/tags.rb, line 50 def delete_tag!(tag_id) delete("tags/#{tag_id}") end
get_tag(tag_id)
click to toggle source
Parameters Name Type Description
tag_id string Id of the requested tag
# File lib/frontapp/client/tags.rb, line 14 def get_tag(tag_id) get("tags/#{tag_id}") end
get_tag_conversations(tag_id, params = {})
click to toggle source
Parameters Name Type Description
tag_id string Id of the requested tag
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
# File lib/frontapp/client/tags.rb, line 40 def get_tag_conversations(tag_id, params = {}) cleaned = params.permit({ q: [:statuses] }) list("tags/#{tag_id}/conversations", cleaned) end