def _request(self, path, method, body=None):
h = httplib2.Http()<EOL>resp, content = h.request(<EOL>self.base_url + path,<EOL>method,<EOL>body = json.dumps(body),<EOL>)<EOL>if resp['<STR_LIT:status>'] == "<STR_LIT>":<EOL><INDENT>return json.loads(content)<EOL><DEDENT>else:<EOL><INDENT>raise IOError(<EOL>"<STR_LIT>" % (<EOL>resp['<STR_LIT:status>'],<EOL>content,<EOL>)<EOL>)<EOL><DEDENT>
Base request function