def submit_ticket(email, category, subject, body, tags):
 zendesk = get_zendesk()
 new_ticket = {'ticket': {'requester_email': email, 'subject': (settings.ZENDESK_SUBJECT_PREFIX + subject), 'description': body, 'set_tags': category, 'tags': tags}}
 try:
  ticket_url = zendesk.create_ticket(data=new_ticket)
  statsd.incr('questions.zendesk.success')
 except ZendeskError as e:
  log.error(('Zendesk error: %s' % e.msg))
  statsd.incr('questions.zendesk.error')
  raise
 return ticket_url

def submit_ticket ( email , category , subject , body , tags ) : zendesk = get_zendesk ( ) new_ticket = { 'ticket' : { 'requester_email' : email , 'subject' : ( settings . ZENDESK_SUBJECT_PREFIX + subject ) , 'description' : body , 'set_tags' : category , 'tags' : tags } } try : ticket_url = zendesk . create_ticket ( data = new_ticket ) statsd . incr ( 'questions.zendesk.success' ) except ZendeskError as e : log . error ( ( 'Zendesk error: %s' % e . msg ) ) statsd . incr ( 'questions.zendesk.error' ) raise return ticket_url
submit a marketplace ticket to zendesk .