def _parse_exchange_token_response(content):
resp = {}<EOL>content = _helpers._from_bytes(content)<EOL>try:<EOL><INDENT>resp = json.loads(content)<EOL><DEDENT>except Exception:<EOL><INDENT>resp = _helpers.parse_unique_urlencoded(content)<EOL><DEDENT>if resp and '<STR_LIT>' in resp:<EOL><INDENT>resp['<STR_LIT>'] = resp.pop('<STR_LIT>')<EOL><DEDENT>return resp<EOL>
Parses response of an exchange token request.

    Most providers return JSON but some (e.g. Facebook) return a
    url-encoded string.

    Args:
        content: The body of a response

    Returns:
        Content as a dictionary object. Note that the dict could be empty,
        i.e. {}. That basically indicates a failure.