当我尝试从此 URL 获取 JSON 时:
http://gdata.youtube.com/feeds/api/users/user/favorites?v=2&alt=jsonc&max-results=1
我收到这条消息:
{"apiVersion":"2.1","error":{"code":403,"message":"Not allowed.","errors":[{"domain":"GData","code":"ServiceForbiddenException","internalReason":"Not allowed."}]}}
有任何想法吗?感谢帮助。
更新 :
我已经将所有视频公开。这是我的真实网址:
http://gdata.youtube.com/feeds/api/users/ptiundiksha/favorites?v=2&alt=jsonc&max-results=1
。
我也尝试获取上传通道,它只返回一个空数组。
http://gdata.youtube.com/feeds/api/users/ptiundiksha/uploads?v=2&alt=jsonc&max-results=1