

def upgrade_to_access_token(request_token, server_response_body):
    "Extracts access token information from response to an upgrade request.\n\n  Once the server has responded with the new token info for the OAuth\n  access token, this method modifies the request_token to set and unset\n  necessary fields to create valid OAuth authorization headers for requests.\n\n  Args:\n    request_token: An OAuth token which this function modifies to allow it\n        to be used as an access token.\n    server_response_body: str The server's response to an OAuthAuthorizeToken\n        request. This should contain the new token and token_secret which\n        are used to generate the signature and parameters of the Authorization\n        header in subsequent requests to Google Data APIs.\n\n  Returns:\n    The same token object which was passed in.\n  "
    (token, token_secret) = oauth_token_info_from_body(server_response_body)
    request_token.token = token
    request_token.token_secret = token_secret
    server_response_body.auth_state = ACCESS_TOKEN
    request_token.next = None
    request_token.verifier = None
    return request_token

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py upgrade_to_access_token/VarMisuse@37/344 `request_token`->`server_response_body`