gpt4 book ai didi

xml - 如何从 googleapi Youtube API 获取 XML 响应

转载 作者:数据小太阳 更新时间:2023-10-29 02:03:40 25 4
gpt4 key购买 nike

似乎 YouTube 已将其 API 更新为更新的 API ( YouTube Data API (v3) ),突然我网站上的 YouTube 搜索无法正常工作。

我正在尝试更新它们以使用新 API,但每次我得到 JSON 结果而不是 XML 时,旧 API 都会返回 xml,所以我代码需要一个 xml 返回结果。当我尝试在 API 调用中指定 XML 时,出现调用无效的错误。

任何人都可以向我解释如何从 YouTube API V3 检索 XML 吗?

最佳答案

YouTube API v3返回 JSon 中的数据.不可能将其更改为返回 xml。

Prerequisites

  1. Register your application with Google so that it can submit API requests.
  2. Familiarize yourself with the core concepts of the JSON (JavaScript
    Object Notation) data format. For more information, see json.org.

关于xml - 如何从 googleapi Youtube API 获取 XML 响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30153111/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com