

def generate_oauth_authorization_url(token, next=None, hd=DEFAULT_DOMAIN, hl=None, btmpl=None, auth_server=OAUTH_AUTHORIZE_URL):
    "Creates a URL for the page where the request token can be authorized.\n\n  Args:\n    token: str The request token from the OAuth server.\n    next: str (optional) URL the user should be redirected to after granting\n        access to a Google service(s). It can include url-encoded query\n        parameters.\n    hd: str (optional) Identifies a particular hosted domain account to be\n        accessed (for example, 'mycollege.edu'). Uses 'default' to specify a\n        regular Google account ('username@gmail.com').\n    hl: str (optional) An ISO 639 country code identifying what language the\n        approval page should be translated in (for example, 'hl=en' for\n        English). The default is the user's selected language.\n    btmpl: str (optional) Forces a mobile version of the approval page. The\n        only accepted value is 'mobile'.\n    auth_server: str (optional) The start of the token authorization web\n        page. Defaults to\n        'https://www.google.com/accounts/OAuthAuthorizeToken'\n\n  Returns:\n    An atom.http_core.Uri pointing to the token authorization page where the\n    user may allow or deny this app to access their Google data.\n  "
    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

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py generate_oauth_authorization_url/original