예제 #1
0
    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())
예제 #2
0
 def _process(self, address):
     result = (yield get_page('http://firstbits.com/api/?a=%s' %
                              address)).strip()
     defer.returnValue(result)
예제 #3
0
 def _process(self, address, action):
     result = (yield get_page('http://blockchain.info/q/%s/%s' %
                              (action, address))).strip()
     defer.returnValue(result)
예제 #4
0
 def _process(self, address):     
     result = (yield get_page('http://firstbits.com/api/?a=%s' % address)).strip()
     defer.returnValue(result)
예제 #5
0
 def _process(self, address, action):
     result = (yield get_page('http://blockchain.info/q/%s/%s' % (action, address))).strip()
     defer.returnValue(result)