def call(self, method, **params):
url = self.api_url % method<EOL>request = self._get_request(url, self.METHODS[method], **params)<EOL>try:<EOL><INDENT>response = urlopen(request)<EOL><DEDENT>except URLError:<EOL><INDENT>raise<EOL><DEDENT>else:<EOL><INDENT>response_json = json.loads(response.read())<EOL>if not response_json['<STR_LIT>']:<EOL><INDENT>raise DisqusException(response_json['<STR_LIT:message>'])<EOL><DEDENT>return response_json['<STR_LIT:message>']<EOL><DEDENT>
Call the DISQUS API and return the json response.
URLError is raised when the request failed.
DisqusException is raised when the query didn't succeed.