locked
How do load "feed"youtube on windows phone store(same the 1st youtube.com pages), RRS feed

  • Question

  • Hi everyone,

    How do load "feed"youtube on windows phone store(same the 1st youtube.com pages).

    ex:

    load most popular on Youtube", music, sport.... using google.apis... but error not finding "Feed" and "request".

    here code:

     string feedUrl="https://gdata.youtube.com/feeds/api/standardfeeds/most_popular";
                 Feed<Video> videoFeed = request.Get<Video>(new Uri(feedUrl));
                printVideoFeed(videoFeed);
    
                static void printVideoFeed(Feed<Video> feed)
                {
                  foreach (Video entry in feed.Entries)
                  {
                    printVideoEntry(entry);
                  }
                }

    thanks.



    Wednesday, July 30, 2014 4:01 AM

Answers

  • You should ask on a forum that supports Google APIs.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, July 30, 2014 4:03 PM
    Moderator

All replies

  • Are you using Windows Store APIs in this case? We don't have a class called "Feed", but we do have a class called "SyndicationFeed".  I suggest you check out the Syndication sample.



    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, July 30, 2014 1:15 PM
    Moderator
  • If use "Google.data" then Feed but now, using "Google.Apis...." so i don't know to How do that?

     private void loadfeedYoutube()
        {
             string feedUrl="https://gdata.youtube.com/feeds/api/standardfeeds/most_popular";
             var request=new 
             Feed<Video> videoFeed = request.Get<Video>(new Uri(feedUrl));
             printVideoFeed(videoFeed);
    
                static void printVideoFeed(Feed<Video> feed)
                {
                  foreach (Video entry in feed.Entries)
                  {
                    printVideoEntry(entry);
                  }
                }
        }

    using Google.Apis.Auth.OAuth2;
    using Google.Apis.Services;
    using Google.Apis.Upload;
    using Google.Apis.Util.Store;
    using Google.Apis.YouTube.v3;
    using Google.Apis.YouTube.v3.Data;

    I want load all information the most popular on youtube.
    Wednesday, July 30, 2014 1:23 PM
  • You should ask on a forum that supports Google APIs.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, July 30, 2014 4:03 PM
    Moderator