Rate (like / dislike) YouTube comments

Simple problem:

I use Youtube gdata through javascript to: Comment, Reply and I like / dislike the video. Everything is still working!

However, I try to allow users to especially like and dislike COMMENTS (just like you can on your native youtube.com). But I can not find documents that explain how this is done.

I tried sending the following to ...://gdata.youtube.com/feeds/api/videos/[video_id]/ratings

 <entry xmlns="http://www.w3.org/2005/Atom" xmlns:yt="http://gdata.youtube.com/schemas/2007"> <link rel="http://gdata.youtube.com/schemas/2007#in-reply-to" type="application/atom+xml" href="<ID>"/> <yt:rating value="like"/> </entry> 

But there is no joy. Any help would be appreciated! Thanks.

+6
source share
1 answer

You have video comments, so I assume you are using the YouTube V2 API because it is not possible in V3 . And document V2 says:

Each entry in the comment feed contains information about one comment. Each comment has an author, title, content and in response to the link.

Source: https://developers.google.com/youtube/2.0/reference?hl=fr&csw=1#Comments_Feeds

They do not talk about likes and dislikes. It is also impossible to get the number of comments and comments so as not to add them.

+4
source

Source: https://habr.com/ru/post/946195/


All Articles