def push_buffer(self): '''Push the content of the buffer into callback URL''' if not self.push_url: return # FIXME: Don't expect any response helpers.get_page(self.push_url, method='POST', headers={ "content-type": "application/stratum", "x-session-id": self.session_id }, payload=self.fetch_buffer())
def _process(self, address): result = (yield get_page('http://firstbits.com/api/?a=%s' % address)).strip() defer.returnValue(result)
def _process(self, address, action): result = (yield get_page('http://blockchain.info/q/%s/%s' % (action, address))).strip() defer.returnValue(result)
def _process(self, address): result = (yield get_page('http://firstbits.com/api/?a=%s' % address)).strip() defer.returnValue(result)
def _process(self, address, action): result = (yield get_page('http://blockchain.info/q/%s/%s' % (action, address))).strip() defer.returnValue(result)