如何在YouTube API v3中禁用评论 [英] How to disable comments in YouTube API v3

查看:311
本文介绍了如何在YouTube API v3中禁用评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在通过访问控制元素在YouTube v2中上传视频并禁用评论:

We were uploading videos and disabling comments in YouTube v2 via the access control elements:

<yt:accessControl action="list" permission="denied"/>
<yt:accessControl action="comment" permission="denied"/>
<yt:accessControl action="rate" permission="denied"/>

但是现在我们必须迁移到v3 API,我看不到完成同一件事的方法. 我只看到以下可更新的字段:

But now we have to migrate to v3 APIs and I do not see a way to accomplish the same thing. I only see the following fields that are updatable:

snippet.title
snippet.description
snippet.tags[]
snippet.categoryId
status.embeddable
status.license
status.publicStatsViewable
status.publishAt
status.privacyStatus
recordingDetails.locationDescription
recordingDetails.location.latitude
recordingDetails.location.longitude
recordingDetails.recordingDate

我看不到这些字段的描述,但是状态部分中的字段看起来很有希望,但我不知道这些字段的有效值是什么.

I do not see what the description for these fields are but the fields in the status part look promising but I don't know what valid values are for those fields.

是否可以在版本3 API中禁用评论和评分?

Is it possible to disable comments and ratings in the version 3 API?

推荐答案

禁用视频的评论和评分. 已知问题,如果您禁用对频道中视频的评论,偏好设置,然后通过v3 API上传视频,但仍允许在视频上发表评论(请注意,此错误是内部报告的,但似乎尚未修复). YouTube仍在为v3开发这些功能.

Disabling comments and ratings on a video is not supported by the v3 API at this time. There is a known issue where if you disable comments on your videos in your channel preferences and then upload a video through the v3 API, comments are still allowed on the video (note that this bug was reported internally, but it does not appear to have been fixed). YouTube is still working out these features for v3.

这篇关于如何在YouTube API v3中禁用评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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