几个月来,我一直使用此链接从YouTube检索新的视频链接 每20分钟,每周7天,每天24小时:
http://gdata.youtube.com/feeds/api/users/$MYUSERNAME/newsubscriptionvideos?max-results=50&v=2
今天突然,YouTube的API返回了:
<errors xmlns='http://schemas.google.com/g/2005'>
<error>
<domain>GData</domain>
<code>ServiceForbiddenException</code>
<internalReason>Forbidden</internalReason>
</error>
</errors>
我在以前工作的代码中没有更改任何内容。 API有变化吗?如何获得新的订阅视频?
我不会将我的订阅设为私人http://www.youtube.com/account_privacy
这不再是一个问题,Google将所有内容恢复到之前的工作状态。