YOUTUBE API:检索视频关键字 [英] YOUTUBE API : Retrieve video keywords
问题描述
最近youtube决定只将视频关键字输出给经过身份验证的开发人员.
Recently youtube decided to output video keywords only to authenticated developper.
我注册了开发者密钥
,我尝试获取要解析的XML 通过请求
and I'm try to get a XML that I'll parse by requesting
https://gdata.youtube.com/feeds/api/视频/COwIYbYQUrQ?key = MY_VERY_LONG_DEVELOPER_KEY
输出XML仍然发送给我
The output XML still send me
<media:keywords/>
在此过程中我缺少什么?
What am I missing in the process?
谢谢
推荐答案
除非您验证"自己是视频的所有者,否则YouTube会将<media:keywords />
元素设置为空.如果在YouTubeRequestSettings构造函数中提供用户名和密码,您仍然可以看到视频的所有关键字.
YouTube makes the <media:keywords />
element empty unless you "authenticate" that you are the owner of the video. You can still see all of YOUR video's keywords if you provide your username and password in the YouTubeRequestSettings constructor.
在.NET中:
YouTubeRequestSettings settings = new YouTubeRequestSettings(appname, developerskey, username, password);
这篇关于YOUTUBE API:检索视频关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!