youtube API v3 - 评价(喜欢/不喜欢)评论/评论线程? [英] youtube API v3 - rate (like/dislike) comment/commentThread?

查看:32
本文介绍了youtube API v3 - 评价(喜欢/不喜欢)评论/评论线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速问题 - 如标题所述.那可能吗?我认为以下端点是我最好的选择:https://developers.google.com/youtube/v3/docs/comments/update,但找不到任何类似于 api 调用来评价视频的内容,我也没有找到任何关于 v3 的文档>

如果是,请将我指向 http 端点.

解决方案

部分是的,您可以使用该端点并为 snippet.viewerRating 但目前它只允许您指定两个值,如和 none.

<块引用>

查看者对此评论的评分.请注意,此属性当前无法识别不喜欢评级,但此行为可能会发生变化.同时,属性值就像查看者对评论的评价一样.在所有其他情况下,该值都为 none,包括用户对评论进行了负面评价或未对评论进行评价.

Quick question - as stated in the title. Is that possible? I thought the following endpoint would be my best shot: https://developers.google.com/youtube/v3/docs/comments/update, but can't find anything that resembles api call for rating a video, nor did I find any documentation on that for v3

If it is, please point me to the http endpoint.

解决方案

Partially Yes, You can use that endpoint and specify a value for snippet.viewerRating but as of now it only allows you to specify two values like and none.

The rating the viewer has given to this comment. Note that this property does not currently identify dislike ratings, though this behavior is subject to change. In the meantime, the property value is like if the viewer has rated the comment positively. The value is none in all other cases, including the user having given the comment a negative rating or not having rated the comment.

这篇关于youtube API v3 - 评价(喜欢/不喜欢)评论/评论线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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