2012-01-21 7 views
2

どのように開発者キーなしでYouTubeのリクエストをすることができますか?私が持っているあなたは認証なしでyoutubeビデオを取得

例:

Uri videoEntryUrl = new Uri("http://gdata.youtube.com/feeds/api/videos/xyz123"); 
Video video = request.Retrieve<Video>(videoEntryUrl); 

私はビデオオブジェクトをしたいが、リクエストオブジェクトは、資格証明書などが必要です - このラウンド方法はありますか?

読み取り専用の要求が公開動画は 認証を必要としません取得するには:

documentationは言いません。

答えて

1

NULLであなたのYouTubeRequestSettingsを初期化:

YouTubeRequestSettings settings = new YouTubeRequestSettings(null, null); 
YouTubeRequest request = new YouTubeRequest(settings); 
Uri videoEntryUrl = new Uri("http://gdata.youtube.com/feeds/api/videos/xyz123"); 
Video video = request.Retrieve<Video>(videoEntryUrl); 
関連する問題