는 클라이언트가 YouTube 채널을 만들고 해당 채널에서 재생 목록 (들)을 생성하게한다. 그런 다음 클라이언트는 사이트에 포함시킬 재생 목록을 알려주고 YouTube API을 통해 특정 재생 목록의 모든 동영상을 가져올 수 있습니다.
이렇게 설정하면 (한 번) 잊어 버릴 수 있습니다. 또한 클라이언트는 적합하다고 생각하는 YouTube 내 재생 목록을 유지 관리 할 수 있으며 해당 재생 목록 내의 동영상이 자동으로 웹 사이트에 포함된다는 것을 알고 있습니다. 여기
일부 샘플 코드 조각은 다음과 같습니다
// Init service.
YouTubeService service = new YouTubeService("MyApplicationName", "MyDeveloperApiKey");
// Get playlists for youtube user (your client).
PlaylistsFeed playlists = service.GetPlaylists(new YouTubeQuery("http://gdata.youtube.com/feeds/api/users/[CLIENT_USER]/playlists"));
// Get playlist feed.
PlaylistFeed feed = service.GetPlaylist(new YouTubeQuery("http://gdata.youtube.com/feeds/api/playlists/" + playlistID)));
// Get list of video IDs for playlist.
(from atomEntry in feed.Entries select (atomEntry as PlaylistEntry).VideoId).ToList());
사용할 수
출처
2011-03-18 20:36:57
Kon
http://code.google.com/intl/et-EE/apis/youtube/overview.html – Margus