禁止获取 twitch 频道提要

Getting twitch channel feed forbidden

根据 API:https://github.com/justintv/Twitch-API/blob/master/v3_resources/channel_feed.md#get-feedchannelposts

我尝试使用 PHP 和 cUrl 来获取最新的频道提要评论。这是我正在投票的URL:

https://api.twitch.tv/kraken/feed/:username/posts

显然是将 :username 作为我的实际用户名。我也路过:

"oauth_token" => "[MY OAUTH TOKEN]"

我知道此过程通常有效,因为我正在使用它来获取有关频道和关注者信息的正常信息。尽管在 feed 帖子中尝试了它,但我收到了这条消息(在 JSON 解码之后):

Array
(
    [error] => Forbidden
    [status] => 403
    [message] => Channel feed is disabled
)

当我使用 oauth 为帐户设置授权时,我包括以下允许范围:

user_read user_blocks_edit user_blocks_read user_follows_edit channel_read channel_editor channel_commercial channel_stream channel_subscriptions user_subscriptions channel_check_subscription chat_login channel_feed_read channel_feed_edit

据我所知,这就是一切,所以不确定为什么它会被禁止,正如我提到的,我正在使用 API 的其他部分,所以不确定这里有什么问题......任何想法或帮助非常感谢:)

我绝不是 twitch 的专家 API 但我会试一试。查看他们的 github 文档显示 3 ways of sending access token for authentication.

您是否可以在 HTTP 正文中发送令牌?它明确指出这不适用于 GETDELETE 方法,这可能会在您尝试 GET 频道提要帖子时给您一个错误。希望这有帮助。

编辑:您只是没有在您的帐户上启用频道供稿。它目前是可选的,因为它处于测试阶段。参见:http://help.twitch.tv/customer/portal/articles/2377877-how-to-use-channel-feed