code: def get_json(url, auth=None, data=None):
      
      headers = {
          'Accept': 'application/vnd.travis-ci.2+json',
          'User-Agent': 'Travis/Tox-Travis-1.0a',
          # User-Agent must start with "Travis/" in order to work
      }
      if auth:
          headers['Authorization'] = 'token {auth}'.format(auth=auth)
  
      params = {}
      if data:
          headers['Content-Type'] = 'application/json'
          params['data'] = json.dumps(data).encode('utf-8')
  
      request = urllib2.Request(url, headers=headers, **params)
      response = urllib2.urlopen(request).read()
      return json.loads(response.decode('utf-8'))
docs: Make a GET request, and return the response as parsed JSON.