def __get_oauth_url(self, url, method): """ Generate oAuth1.0a URL """ oauth = OAuth(url=url, consumer_key=self.consumer_key, consumer_secret=self.consumer_secret, version=self.version, method=method) return oauth.get_oauth_url()
def __get_oauth_url(self, url, method): """ Generate oAuth1.0a URL """ oauth = OAuth( url=url, consumer_key=self.consumer_key, consumer_secret=self.consumer_secret, version=self.version, method=method ) return oauth.get_oauth_url()
def __get_oauth_url(self, url, method, **kwargs): """ Generate oAuth1.0a URL """ oauth = OAuth(url=url, consumer_key=self.consumer_key, consumer_secret=self.consumer_secret, version=self.version, method=method, oauth_timestamp=kwargs.get("oauth_timestamp", int(time()))) return oauth.get_oauth_url()