Friday, June 1, 2012

[YouTube-API] Re: How do I get my Watch Later playlist using the C# YouTube API?

Hello,

The generic docs for the watch later playlist are at

https://developers.google.com/youtube/2.0/developers_guide_protocol_playlists#Retrieving_watch_later_playlist

They specify that the URL for the playlist is

https://gdata.youtube.com/feeds/api/users/default/watch_later

And you should be able to get it from .NET via

Feed<Playlist> watchLaterList = request.Get<Playlist>(new
Uri("https://gdata.youtube.com/feeds/api/users/default/watch_later"));

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On May 30, 10:14 pm, ShaadowKnight <meonlineh...@gmail.com> wrote:
> Here is how I get my request object?
>
>         private static YouTubeRequest _Request = null;
>         private static YouTubeRequest Request
>         {
>             get
>             {
>                 if (_Request == null)
>                 {
>                     YouTubeRequestSettings settings = new
> YouTubeRequestSettings("YouTubeApp",
> Properties.Settings.Default.GoogleAPIKey, Username, Password);
>                     _Request = new YouTubeRequest(settings);
>                 }
>                 return _Request;
>             }
>         }
>
> And here is how I get my playlist, passing in Default for who:
>
>         public static Feed<Google.YouTube.Playlist> GetPlaylists(string who)
>         {
>             return Request.GetPlaylistsFeed(who);
>         }
>
> What little I find online says the Watch Later list should be included but
> it does not.  So what am I missing?  thanks...

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment