将视频插入别人的播放列表 YouTube API v3 结果 403 [英] Insert video into someone else's playlist YouTube API v3 results in 403

查看:22
本文介绍了将视频插入别人的播放列表 YouTube API v3 结果 403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在尝试将视频插入其他人的播放列表(我是合作者).我可以从 youtube.com(网站)插入视频,但通过 YouTube API V3 插入视频会出现 403.

So I'm trying to insert a video into someone else's playlist (I'm a collaborator). I can insert the video from youtube.com (website), but doing it via the YouTube API V3 gives a 403.

回复:

{ "错误": { "错误": [ {"domain": "youtube.playlistItem","reason": "playlistItemsNotAccessible","message": "Forbidden" } ], "code": 403, "message": "Forbidden" } }

{ "error": { "errors": [ { "domain": "youtube.playlistItem", "reason": "playlistItemsNotAccessible", "message": "Forbidden" } ], "code": 403, "message": "Forbidden" } }

对于我拥有的播放列表,youtube api 工作正常.

For the playlists that I own, the youtube api works fine.

知道如何实现这一目标吗?

Any clue how I can achieve this?

推荐答案

error 表示发出的请求没有被正确授权插入指定的播放列表项

The error indicates that the request made was not properly authorized to insert the specified playlist item

forbidden (403) playlistItemsNotAccessible 请求没有正确授权插入指定的播放列表项.

forbidden (403) playlistItemsNotAccessible The request is not properly authorized to insert the specified playlist item.

您可以在您的帐户中插入播放列表项,因为您使用的是 API 授权的帐户.由于您在不同的帐户上尝试它,因此会导致 403 错误.不过,我不知道在 youtube 网站上怎么可能.

You can insert a playlist item in your account since you're using it the account authorized by the API. Since you're trying it on a different account, its resulting with the 403 error. I don't know how its possible in the youtube website, though.

这篇关于将视频插入别人的播放列表 YouTube API v3 结果 403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆