def generate_oauth_authorization_url(token, next=None, hd=DEFAULT_DOMAIN, hl=None, btmpl=None, auth_server=OAUTH_AUTHORIZE_URL):
 uri = atom.http_core.Uri.parse_uri(auth_server)
 uri.query['oauth_token'] = token
 uri.query['hd'] = hd
 if (next is not None):
  uri.query['oauth_callback'] = str(next)
 if (hl is not None):
  uri.query['hl'] = hl
 if (btmpl is not None):
  uri.query['btmpl'] = btmpl
 return uri

def generate_oauth_authorization_url ( token , next = None , hd = DEFAULT_DOMAIN , hl = None , btmpl = None , auth_server = OAUTH_AUTHORIZE_URL ) : uri = atom . http_core . Uri . parse_uri ( auth_server ) uri . query [ 'oauth_token' ] = token uri . query [ 'hd' ] = hd if ( next is not None ) : uri . query [ 'oauth_callback' ] = str ( next ) if ( hl is not None ) : uri . query [ 'hl' ] = hl if ( btmpl is not None ) : uri . query [ 'btmpl' ] = btmpl return uri
creates a url for the page where the request token can be authorized .