【问题标题】:youtube.liveChatMessages.list API Exploreryoutube.liveChatMessages.list API 资源管理器
【发布时间】:2018-07-31 16:47:12
【问题描述】:

我尝试从 YouTube 的 LiveChat 中列出消息。请求:

GET https://www.googleapis.com/youtube/v3/liveChat/messages?liveChatId=Qfad59EnhUA&part=snippet&key={YOUR_API_KEY}

回复:

404 Not Found
{
 "error": {
  "errors": [
   {
    "domain": "youtube.liveChat",
    "reason": "liveChatNotFound",
    "message": "The live chat that you are trying to retrieve cannot be found. Check the value of the requests <code>liveChatId</code> parameter to ensure that it is correct."
   }
  ],
  "code": 404,
  "message": "The live chat that you are trying to retrieve cannot be found. Check the value of the requests <code>liveChatId</code> parameter to ensure that it is correct."
 }
}

页面https://www.youtube.com/live_chat?is_popout=1&v=Qfad59EnhUAhttps://www.youtube.com/watch?v=Qfad59EnhUA 存在。

怎么了?

【问题讨论】:

    标签: youtube-data-api google-apis-explorer


    【解决方案1】:

    我决定这个问题。 liveChatId 可以从 python 的广播中获取:

    print '%s' % (broadcast['snippet']['liveChatId'])
    

    【讨论】:

      猜你喜欢
      • 2016-12-23
      • 1970-01-01
      • 1970-01-01
      • 2016-11-11
      • 1970-01-01
      • 1970-01-01
      • 2019-06-04
      • 1970-01-01
      相关资源
      最近更新 更多