Thursday, 15 March 2012

c# - Get videos specific to a user from search result -



c# - Get videos specific to a user from search result -

i'm using google.apis.youtube.v3 plugin in .net mvc.

var service = _youtubeservice.getyoutubeservice; var searchreq = service.search.list("snippet"); searchreq.channelid = "exampleidgoeshere"; // search channel searchreq.q = "acoustic"; // search term var model = new youtubeviewmodel { info = searchreq.execute().items } homecoming view(model);

in view, goal embed videos. far, relevant info can search result's title , description. items, each beingness searchresult object, not video - i'm looking for.

two questions: - how retrieve videos specific user (using .net plugin)? - how video info such url, embedding purposes?

to videos specific channel using v3 you'll need to next steps.

get channel uploads playlist id. acquire using channels list phone call

then list of videos in uploads playlist using playlistitems call

from there can create video url using "https://www.youtube.com/watch?v=" + video.id

c# google-api youtube-api google-api-dotnet-client

No comments:

Post a Comment