def upgrade_to_access_token(request_token, server_response_body):
 (token, token_secret) = oauth_token_info_from_body(server_response_body)
 request_token.token = token
 request_token.token_secret = token_secret
 request_token.auth_state = ACCESS_TOKEN
 request_token.next = None
 request_token.verifier = None
 return request_token

def upgrade_to_access_token ( request_token , server_response_body ) : ( token , token_secret ) = oauth_token_info_from_body ( server_response_body ) request_token . token = token request_token . token_secret = token_secret request_token . auth_state = ACCESS_TOKEN request_token . next = None request_token . verifier = None return request_token
extracts access token information from response to an upgrade request .