我已下载以下路径的示例代码 http://www.codeproject.com/Articles/143669/Manage-YouTube-using-C-and-Youtube-API-1-6
然后我安装了YouTube_SDK_2.1.0.0.msi
现在我可以成功构建项目,但是当我想在Youtube中搜索视频时
录像带的AtomFeed将返回Error=NoLinkedYouTubeAccount
请告诉我发生了什么事,我已经在网络上调查了几天。
示例代码列表如下
yousettings = new YouTubeRequestSettings("My AP", devkey, username, password);
yousettings.Credentials.AccountType = "GOOGLE";
.........
videofeed = yourequest.Get<Video>(new Uri(feedUrl));
videofeed将始终返回失败,然后样本Ap将崩溃,崩溃信息列表如下:
未处理的类型异常
Google.GData.Client.GDataRequestException
发生在Google.GData.Client.dll
其他信息:执行请求 失败: http://gdata.youtube.com/feeds/api/standardfeeds/top_rated?time=today
注意: