问题
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