def _call(self, resource, params):
url = self.URL % {'<STR_LIT>': self.base_url, '<STR_LIT>': resource}<EOL>logger.debug("<STR_LIT>",<EOL>resource, str(params))<EOL>while True:<EOL><INDENT>r = self.fetch(url, payload=params)<EOL>yield r.text<EOL>j = r.json()<EOL>if '<STR_LIT>' not in j:<EOL><INDENT>break<EOL><DEDENT>if '<STR_LIT>' not in j['<STR_LIT>']:<EOL><INDENT>break<EOL><DEDENT>url = urijoin(self.base_url, j['<STR_LIT>']['<STR_LIT>'])<EOL>params = {}<EOL><DEDENT>
Retrive the given resource.

        :param resource: resource to retrieve
        :param params: dict with the HTTP parameters needed to retrieve
            the given resource