Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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()