本文介绍了通过 YoutubeAPI 设置自定义缩略图不起作用.有人能告诉我为什么吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试上传视频的自定义缩略图.

I try to upload custom thumbnail for video.

官方文档链接:https://developers.google.com/youtube/v3/docs/thumbnails/set

请求访问令牌的使用范围是:
https*://www.googleapis.com/auth/youtube.force-ssl
https*://www.googleapis.com/auth/youtubepartner
https*://www.googleapis.com/auth/userinfo.profile
https*://www.googleapis.com/auth/userinfo.email
https*://www.googleapis.com/auth/youtube
https*://www.googleapis.com/auth/youtube.upload

Used scopes for requested access token was:
https*://www.googleapis.com/auth/youtube.force-ssl
https*://www.googleapis.com/auth/youtubepartner
https*://www.googleapis.com/auth/userinfo.profile
https*://www.googleapis.com/auth/userinfo.email
https*://www.googleapis.com/auth/youtube
https*://www.googleapis.com/auth/youtube.upload

然后我得到回复:

调用 PUT 时出错 https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId=my_video_id&uploadType=resumable&upload_id=my_upload_id:(403) 认证用户无权上传和设置自定义视频缩略图.

Error calling PUT https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId=my_video_id&uploadType=resumable&upload_id=my_upload_id: (403) The authenticated user doesnt have permissions to upload and set custom video thumbnails.

我设置了所有需要的范围,但仍然没有权限.我该如何解决?谢谢.

I set all needed scopes and still have not permissions. How can i resolve it?Thanks.

推荐答案

我遇到了同样的问题.找到解决方案:

I had the same problem. Found the solution:

请输入电话号码来验证您的帐户,并在您的帐户面板中启用自定义缩略图".

Please verify your account by putting telephone number and enable "customised thumbnails" in your account's panel.

文档:https://support.google.com/youtube/answer/72431

这篇关于通过 YoutubeAPI 设置自定义缩略图不起作用.有人能告诉我为什么吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 12:08