def apiCall(self, url, payload=None):
        if payload is None:
            payload = ''
        request = urllib2.Request(url, data=StringIO(payload), headers={'Content-Length': len(payload)})
        try:
            response = urllib2.urlopen(request)
        except urllib2.HTTPError as e:
            self._error_count += 1
            raise
        self._error_count = 0
        return response.read()
Perform a call to Safe Browsing API
dataset/ETHPy150Open afilipovich/gglsbl/gglsbl/protocol.py/BaseProtocolClient.apiCall