【发布时间】:2013-09-29 07:19:27
【问题描述】:
当我尝试从此 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
【问题讨论】:
-
您是否还在您的网络浏览器中输入了网址“gdata.youtube.com/feeds/api/users/ptiundiksha/…”作为网址?这样做应该会显示带有提要结果的响应。
标签: json youtube-api