Youtube-API:如何确定我以前是否喜欢过某个视频? [英] Youtube-API: How to determine if I liked a video before?

查看:39
本文介绍了Youtube-API:如何确定我以前是否喜欢过某个视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 iOS 设备开发 Youtube 客户端.我想检查登录的用户是否喜欢或不喜欢指定的视频.但我找不到任何支持 API(此处)

I am developing a client of Youtube for iOS devices. I want to check if logged user did Like or dislike a specified video or not. But I can't find any support API (here)

当我加载视频提要时,我只在下面找到了评分信息,没有任何显示登录用户喜欢或不喜欢该视频.

When I load the feed of videos, I just found rating information below , No thing shows that logged user liked or disliked this video.

{
   "gd$rating":{
      "average":4.8963733,
      "max":5,
      "min":1,
      "numRaters":193,
      "rel":"http://schemas.google.com/g/2005#overall"
   },
   "yt$statistics":{
      "favoriteCount":"0",
      "viewCount":"111626"
   },
   "yt$rating":{
      "numDislikes":"5",
      "numLikes":"188"
   }
}

我做错了吗?

推荐答案

可以使用 YouTube Data API v3 来完成.

It can be done using YouTube Data API v3.

https://developers.google.com/youtube/v3/docs/视频/getRating

这篇关于Youtube-API:如何确定我以前是否喜欢过某个视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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