original_docstring: Constructs and returns the URL to request permission for this client to access the given scope
docstring: Constructs and returns the URL to request permission for this client to access the given scope
docstring_tokens: Constructs and returns the URL to request permission for this client to access the given scope
code: def construct_oauth2_permission_url(permission_url, redirect_uri, client_id, scope):
          """Constructs and returns the URL to request permission for this client to access the given scope"""
          params = {'client_id': client_id, 'redirect_uri': redirect_uri, 'scope': scope, 'response_type': 'code',
                    'access_type': 'offline'}
          param_pairs = []
          for param in sorted(iter(params.items()), key=lambda x: x[0]):
              param_pairs.append('%s=%s' % (param[0], OAuth2Helper.oauth2_url_escape(param[1])))
          return '%s?%s' % (permission_url, '&'.join(param_pairs))
code_tokens: def construct_oauth2_permission_url ( permission_url , redirect_uri , client_id , scope ) : params = { 'client_id' : client_id , 'redirect_uri' : redirect_uri , 'scope' : scope , 'response_type' : 'code' , 'access_type' : 'offline' } param_pairs = [ ] for param in sorted ( iter ( params . items ( ) ) , key = lambda x : x [ 0 ] ) : param_pairs . append ( '%s=%s' % ( param [ 0 ] , OAuth2Helper . oauth2_url_escape ( param [ 1 ] ) ) ) return '%s?%s' % ( permission_url , '&' . join ( param_pairs ) )
short_docstring: Constructs and returns the URL to request permission for this client to access the given scope
short_docstring_tokens: Constructs and returns the URL to request permission for this client to access the given scope
comment: """Constructs and returns the URL to request permission for this client to access the given scope"""