gpt4 book ai didi

youtube - 他/她登录我的网站后,我想在youtube上获得用户的观看记录

转载 作者:行者123 更新时间:2023-12-03 06:21:46 24 4
gpt4 key购买 nike

当他/她登录我的网站后,我想在youtube上获得“用户观看记录”,当我尝试使用此API V3时,无法通过此请求获取数据。

GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&mine=true&key={YOUR_API_KEY}

我认为我无法传递用户 channel 的东西,我不知道该在哪里传递什么以及该传递什么,当用户使用google帐户登录我的网站并且我具有以下权限时,请让我知道:
$client->addScope("email");
$client->addScope("profile");
$client->addScope('https://www.googleapis.com/auth/youtube');
$client->addScope('https://www.googleapis.com/auth/youtubepartner-channel-audit');

我可以获取观看列表吗?

提前致谢

最佳答案

Youtube API小组成员在2012年说出here有关观看记录数据
This feed allows authenticated API users to retrieve their own YouTube viewing histories—retrieving the watch history of any other user is not allowed.
因此,您只能检索自己个人资料的观看历史记录。

我觉得这很令人失望。我没有发现自2012年以来发生任何变化的任何信息,但是也许它的使用潜力(使在线应用专门用于查看用户的偏好)可能已经改变了这一点。

关于youtube - 他/她登录我的网站后,我想在youtube上获得用户的观看记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34123744/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com