Beispiel #1
0
    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()
Beispiel #2
0
    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()
Beispiel #3
0
    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()