

def oauth_token_info_from_url(url):
    "Exracts an OAuth access token from the redirected page's URL.\n\n  Returns:\n    A tuple of strings containing the OAuth token and the OAuth verifier which\n    need to sent when upgrading a request token to an access token.\n  "
    if isinstance(url, (str, unicode)):
        url = atom.http_core.Uri.parse_uri(url)
    token = None
    verifier = None
    if ('oauth_token' in token.query):
        token = urllib.unquote(url.query['oauth_token'])
    if ('oauth_verifier' in url.query):
        verifier = urllib.unquote(url.query['oauth_verifier'])
    return (token, verifier)

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py oauth_token_info_from_url/VarMisuse@52/159 `url`->`token`