@staticmethod<EOL><INDENT>def _get(url, params=None):<DEDENT>
try:<EOL><INDENT>response = requests.get(url, params=params)<EOL>response.raise_for_status()<EOL>try:<EOL><INDENT>return response.json()<EOL><DEDENT>except ValueError:<EOL><INDENT>return response.text<EOL><DEDENT><DEDENT>except NameError:<EOL><INDENT>url = '<STR_LIT>'.format(url, urllib.urlencode(params))<EOL>return json.loads(urllib2.urlopen(url).read().decode(ENCODING))<EOL><DEDENT>
HTTP GET request.