gpt4 book ai didi

PHP YouTube Live Streaming API不足权限错误

转载 作者:行者123 更新时间:2023-12-03 05:58:11 24 4
gpt4 key购买 nike

我正在尝试通过“YouTube Live Streaming API”(YouTube Data API v3)访问 listLiveBroadcasts。我有 Auth 2.0 访问权限,并且每次都成功获取 token 。使用相同的逻辑,我成功访问了 Google+ 日历事件,我也启用了 YouTube API。但是当我试图列出时:

$youtube->liveBroadcasts->listLiveBroadcasts( 'id,contentDetails', array( 'mine' => 'true', ));

它给出了错误:
[domain] => global
[reason] => insufficientPermissions
[message] => Insufficient Permission

我已经尝试了一切,将范围设置为 $scopes
auth/youtube;

还尝试包括:
force-ssl
readonly

相同的代码正在运行
https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/list

使用谷歌的示例 api key 。

最佳答案

您不应该使用 Google 的示例 API key 。在 Developer Console 中创建一个新应用程序并使用该应用程序的 API key 。

关于PHP YouTube Live Streaming API不足权限错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29817039/

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