【发布时间】:2019-04-20 18:35:22
【问题描述】:
我正在尝试找到一种方法来从流中获取所有消息,而且我已经非常接近了,但随后出现错误。出于某种原因,我使用的视频 ID 无效,即使它 有效。也许我得到了错误的ID?这是 XMLHttpRequest:
https://www.googleapis.com/youtube/v3/liveChat/messages?liveChatId=hHW1oY26kxQ&part=snippet&key={API-KEY}&maxResults=2000
回复如下:
{
"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 \u003ccode\u003eliveChatId\u003c/code\u003e 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 \u003ccode\u003eliveChatId\u003c/code\u003e parameter to ensure that it is correct."
}
}
【问题讨论】:
标签: youtube-api google-apis-explorer youtube-livestreaming-api youtube-data-api