

def from_url(str_or_uri):
    "Creates a new AuthSubToken using information in the URL.\n\n    Uses auth_sub_string_from_url.\n\n    Args:\n      str_or_uri: The current page's URL (as a str or atom.http_core.Uri)\n                  which should contain a token query parameter since the\n                  Google auth server redirected the user's browser to this\n                  URL.\n    "
    token_and_scopes = auth_sub_string_from_url(str_or_uri)
    return AuthSubToken(token_and_scopes[0], token_and_scopes[1])

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