'Gets a ticket from ZenDesk as a JSON object'

def get(self, ticket_id):

    timer = g.stats.get_timer('providers.zendesk.ticket_get')
    timer.start()
    response = requests.get(('%s/api/v2/tickets/%s.json' % (g.live_config['ticket_base_url'], ticket_id)), auth=(('%s/token' % g.secrets['zendesk_user']), g.secrets['zendesk_api_key']), headers={'content-type': 'application/json'})
    timer.stop()
    if (response.status_code != 200):
        g.log.error(('ZENDESK_GET_ERROR:    code:    %s    msg:    %s' % (response.status_code, response.text)))
        return None
    return json.loads(response.content)['ticket']
