YOUTUBE API:检索视频关键字 [英] YOUTUBE API : Retrieve video keywords

查看:155
本文介绍了YOUTUBE API:检索视频关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近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);

对于PHP: https://developers.google.com/youtube/2.0/developers_guide_php#ClientLogin_for_Installed_Applications

这篇关于YOUTUBE API:检索视频关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆