def get_file_upload_url(self, upload_url):
        # oauth GET params for file upload url
        # since the form is multipart/form-data
        req = oauth.OAuthRequest.from_consumer_and_token(
            self.consumer,
            token = self.token,
            http_method = 'POST',
            http_url = upload_url,
        )

        sign_method = oauth.OAuthSignatureMethod_HMAC_SHA1()
        req.set_parameter('oauth_signature_method', sign_method.get_name())
        log.debug('Signing base string %r in get_file_upload_url()'
            % (sign_method.build_signature_base_string(req, self.consumer,
                                                       self.token),))
        req.sign_request(sign_method, self.consumer, self.token)
        return req.to_url()
%prog estimategaps input.bed
dataset/ETHPy150Open typepad/python-typepad-api/typepad/tpclient.py/OAuthClient.get_file_upload_url--crossover with--dataset/ETHPy150Open tanghaibao/jcvi/assembly/allmaps.py/estimategaps