def get_authorize_url(self, state=None):
        """ Gets the URL to use to authorize this app
        """
        payload = {'client_id': self.client_id,
                   'response_type': 'code',
                   'redirect_uri': self.redirect_uri,
                   'scope': self.scope}

        urlparams = urllib.parse.urlencode(payload)

        return "%s?%s" % (self.OAUTH_AUTHORIZE_URL, urlparams)
def get_authorize_url ( self , state = None ) : payload = { 'client_id' : self . client_id , 'response_type' : 'code' , 'redirect_uri' : self . redirect_uri , 'scope' : self . scope } urlparams = urllib . parse . urlencode ( payload ) return "%s?%s" % ( self . OAUTH_AUTHORIZE_URL , urlparams )
Gets the URL to use to authorize this app