Insert video into someone else's playlist YouTube API v3 results in 403

◇◆丶佛笑我妖孽 提交于 2019-12-13 06:47:19

问题


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.

Response:

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

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

Any clue how I can achieve this?


回答1:


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

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

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.



来源:https://stackoverflow.com/questions/36120734/insert-video-into-someone-elses-playlist-youtube-api-v3-results-in-403

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!