

def sign_request(self, url, url_params={
    
}):
    oauth_request = oauth2.Request(method='GET', url=url, parameters=url_params)
    oauth_request.update({
        'oauth_nonce': oauth2.generate_nonce(),
        'oauth_timestamp': oauth2.generate_timestamp(),
        'oauth_token': self.token.key,
        'oauth_consumer_key': self.consumer.key,
    })
    oauth_request.sign_request(oauth2.SignatureMethod_HMAC_SHA1(), self.consumer, self.token)
    return oauth_request.to_url()

dataset/ETHPy150Open Yelp/yelp-python/yelp/oauth1_authenticator.py Oauth1Authenticator.sign_request/original