def GenerateOAuthAccessTokenUrl(authorized_request_token, oauth_input_params, access_token_url='https://www.google.com/accounts/OAuthGetAccessToken', oauth_version='1.0', oauth_verifier=None):
 oauth_token = oauth.OAuthToken(authorized_request_token.key, authorized_request_token.secret)
 parameters = {'oauth_version': oauth_version}
 if (oauth_verifier is not None):
  parameters['oauth_verifier'] = oauth_verifier
 oauth_request = oauth.OAuthRequest.from_consumer_and_token(oauth_input_params.GetConsumer(), token=oauth_token, http_url=access_token_url, parameters=parameters)
 oauth_request.sign_request(oauth_input_params.GetSignatureMethod(), oauth_input_params.GetConsumer(), oauth_token)
 return atom.url.parse_url(oauth_request.to_url())

def GenerateOAuthAccessTokenUrl ( authorized_request_token , oauth_input_params , access_token_url = 'https://www.google.com/accounts/OAuthGetAccessToken' , oauth_version = '1.0' , oauth_verifier = None ) : oauth_token = oauth . OAuthToken ( authorized_request_token . key , authorized_request_token . secret ) parameters = { 'oauth_version' : oauth_version } if ( oauth_verifier is not None ) : parameters [ 'oauth_verifier' ] = oauth_verifier oauth_request = oauth . OAuthRequest . from_consumer_and_token ( oauth_input_params . GetConsumer ( ) , token = oauth_token , http_url = access_token_url , parameters = parameters ) oauth_request . sign_request ( oauth_input_params . GetSignatureMethod ( ) , oauth_input_params . GetConsumer ( ) , oauth_token ) return atom . url . parse_url ( oauth_request . to_url ( ) )
generates url at which user will login to authorize the request token .