code: 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)
docs: Gets the URL to use to authorize this app