class FreshService::Tickets

Constants

TICKET_CONVERSATIONS
TICKET_ENDPOINT
TICKET_FIELDS

Public Class Methods

new(uri) click to toggle source
Calls superclass method FreshServiceApiv2::new
# File lib/freshservice_apiv2.rb, line 84
def initialize(uri)
  super(uri)
end

Public Instance Methods

add_note(id,data) click to toggle source
# File lib/freshservice_apiv2.rb, line 108
def add_note(id,data)
  response = post(TICKET_ENDPOINT + "/#{id}/notes", data.to_json)
end
add_reply(id,data) click to toggle source
# File lib/freshservice_apiv2.rb, line 112
def add_reply(id,data)
  response = post(TICKET_ENDPOINT + "/#{id}/reply", data.to_json)
end
create_ticket(data) click to toggle source
# File lib/freshservice_apiv2.rb, line 88
def create_ticket(data)
  response = post(TICKET_ENDPOINT,data.to_json)
end
delete_conversation(conversation_id) click to toggle source
# File lib/freshservice_apiv2.rb, line 120
def delete_conversation(conversation_id)
  response = delete(TICKET_CONVERSATIONS + "/#{conversation_id}")
end
delete_ticket(id) click to toggle source
# File lib/freshservice_apiv2.rb, line 100
def delete_ticket(id)
  response = delete(TICKET_ENDPOINT + "/#{id}")
end
get_all_conversations(ticket_id) click to toggle source
# File lib/freshservice_apiv2.rb, line 124
def get_all_conversations(ticket_id)
  response = get(TICKET_ENDPOINT + "/#{ticket_id}/conversations")
end
update_conversations(conversation_id,data) click to toggle source
# File lib/freshservice_apiv2.rb, line 116
def update_conversations(conversation_id,data)
  response = update(TICKET_CONVERSATIONS + "/#{conversation_id}", data.to_json)
end
update_ticket(id,data) click to toggle source
# File lib/freshservice_apiv2.rb, line 104
def update_ticket(id,data)
  response = update(TICKET_ENDPOINT + "/#{id}", data.to_json)
end
view_all_ticket_fields() click to toggle source
# File lib/freshservice_apiv2.rb, line 96
def view_all_ticket_fields
  response = get(TICKET_FIELDS)
end
view_ticket(id) click to toggle source
# File lib/freshservice_apiv2.rb, line 92
def view_ticket(id)
  response = get(TICKET_ENDPOINT + "/#{id}")
end