Search This Blog

Sunday, July 8, 2012

HI guys

namespace Blog
gerDevSample
{ class ConsoleSample { /** Lists the user's blogs. */ static void ListUserBlogs(Service service) { Console.WriteLine("\nRetrieving a list of blogs"); FeedQuery query = new FeedQuery(); // Retrieving a list of blogs query.Uri = new Uri("http://www.blogger.com/feeds/default/blogs"); AtomFeed feed = null; feed = service.Query(query); foreach (AtomEntry entry in feed.Entries) { Console.WriteLine(" Blog title: " + entry.Title.Text); } } /** Lists the user's blogs and returns the URI for posting new entries * to the blog which the user selected. */ static Uri SelectUserBlog(Service service) { Console.WriteLine("\nPlease select a blog on which to post."); FeedQuery query = new FeedQuery(); // Retrieving a list of blogs query.Uri = new Uri("http://www.blogger.com/feeds/default/blogs"); AtomFeed feed = service.Query(query);
                                                 
            // Publishing a blog post
            Uri blogPostUri = null;
            if (feed != null)
            {

No comments:

Post a Comment