【问题标题】:How to get youtube-v3-discoverydocument.json with Google API?如何使用 Google API 获取 youtube-v3-discoverydocument.json?
【发布时间】:2016-04-14 21:12:08
【问题描述】:

我正在尝试通过 python 使用 Google API,所以我从该站点获取了一个示例代码,并且在某些时候,这些行出现了:

 # Trusted testers can download this discovery document from the developers page
 # and it should be in the same directory with the code.
 with open("youtube-v3-discoverydocument.json", "r") as f:
    doc = f.read()
    return build_from_document(doc,http=credentials.authorize(httplib2.Http()))

你知道我怎么能找到这个 youtube-v3-discoverydocument.json 吗?上面写着可以从开发者页面下载,但是实在找不到在哪里。

谢谢

【问题讨论】:

    标签: python json youtube-api


    【解决方案1】:

    你可以在这里找到内容:youtube-v3-discoverydocument.json

    此外,您可以使用this reference 检索任何其他 Google API 的类似数据。例如,要检索您要查找的数据,请将参数apiversion 设置为“youtube”和“v3”,然后单击“执行”。

    【讨论】:

      猜你喜欢
      • 2017-07-25
      • 2016-09-07
      • 1970-01-01
      • 2015-10-12
      • 2015-11-23
      • 2019-01-28
      • 2013-10-14
      • 2017-05-29
      • 2015-08-29
      相关资源
      最近更新 更多