def GenerateOAuthRequestTokenUrl(oauth_input_params, scopes, request_token_url='https://www.google.com/accounts/OAuthGetRequestToken', extra_parameters=None):
 scopes_string = ' '.join([str(scope) for scope in scopes])
 parameters = {'scope': scopes_string}
 if extra_parameters:
  parameters.update(extra_parameters)
 oauth_request = oauth.OAuthRequest.from_consumer_and_token(oauth_input_params.GetConsumer(), http_url=request_token_url, parameters=parameters)
 oauth_request.sign_request(oauth_input_params.GetSignatureMethod(), oauth_input_params.GetConsumer(), None)
 return atom.url.parse_url(oauth_request.to_url())

def GenerateOAuthRequestTokenUrl ( oauth_input_params , scopes , request_token_url = 'https://www.google.com/accounts/OAuthGetRequestToken' , extra_parameters = None ) : scopes_string = ' ' . join ( [ str ( scope ) for scope in scopes ] ) parameters = { 'scope' : scopes_string } if extra_parameters : parameters . update ( extra_parameters ) oauth_request = oauth . OAuthRequest . from_consumer_and_token ( oauth_input_params . GetConsumer ( ) , http_url = request_token_url , parameters = parameters ) oauth_request . sign_request ( oauth_input_params . GetSignatureMethod ( ) , oauth_input_params . GetConsumer ( ) , None ) return atom . url . parse_url ( oauth_request . to_url ( ) )
generate a url at which a request for oauth request token is to be sent .