(self)
return oauth_request.to_url()
Returns the url to redirect the user to
Returns the url to redirect the user to
Returns the url to redirect the user to
def get_authorization_url(self):
        """
        Returns the url to redirect the user to
        """
        oauth_request = oauth.OAuthRequest.from_consumer_and_token(
            self.consumer,
            http_url=self.authorization_url,
            token=self.token,
        )
        if self.callback_url:
            oauth_request.parameters['oauth_callback'] = Site.objects.get_current().domain + reverse(self.callback_url)

        oauth_request.sign_request(self.signature_method, self.consumer, self.token)
        return oauth_request.to_url()
def get_authorization_url ( self ) : oauth_request = oauth . OAuthRequest . from_consumer_and_token ( self . consumer , http_url = self . authorization_url , token = self . token , ) if self . callback_url : oauth_request . parameters [ 'oauth_callback' ] = Site . objects . get_current ( ) . domain + reverse ( self . callback_url ) oauth_request . sign_request ( self . signature_method , self . consumer , self . token ) return oauth_request . to_url ( )