Blogging and News Syndication Software

Blogger API, RSS API, Atom API, and more.
posts - 17, comments - 13, trackbacks - 26

My Links

News

Tortuga Components / Software Tools Home

See Also: Chilkat Software

Article Categories

Archives

Post Categories

Recommended

Blogger API C# Example: Get Post Info (Blogger 1.0)

This example uses the Tortuga .NET component located at http://www.worldwideweb-x.com/TortugaDnBeta.zip. Information about other free components (Blogger 2.0, RSS, Atom) is located at http://www.worldwideweb-x.com/openData.html. Don't forget to add a reference to "TortugaDN.dll" to your C# or VB.NET project.
		// C# code to download posts from a blog and access the post information:
		Tortuga.Blogger1 blogger1 = new Tortuga.Blogger1();
		    
		blogger1.Login = "myLogin";
		blogger1.Password = "myPassword";
		blogger1.ServiceUrl = "http://www.livejournal.com/interface/blogger";
                    
		bool success = blogger1.GetUsersBlogs();
		if (success && (blogger1.NumBlogs > 0))
		{
		    // Get the ID of the 1st blog.
		    string blogId = blogger1.GetBlogId(0);
		    
		    // Get the 10 most recent posts.
		    int numPosts = blogger1.GetRecentPosts(blogId,10);
		    
		    // It is possible to access the recent post data as XML.
		    // You could load it into an XML parser and then work with it as you wish.
		    // This example simply retrieves the XML string and displays it in a text box.
		    textBox1.Text = blogger1.RecentPostsToXml();
    
		    // You can iterate over the title/content of each post...
		    string s = "";
		    for (int i = 0; i
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
  • Print | posted on Friday, September 23, 2005 5:08 AM |

    Feedback

    Gravatar

    # re: Blogger API C# Example: Get Post Info (Blogger 1.0)

    your code is cut off....
    5/25/2007 8:15 AM | Lee
    Gravatar

    # re: Blogger API C# Example: Get Post Info (Blogger 1.0)

    Where is the full code. Your code is not full. Please submit the full source code about GetUsersBlogs
    8/19/2009 5:03 AM | ibrahimkhan
    Gravatar

    # re: Blogger API C# Example: Get Post Info (Blogger 1.0)

    Where is the full code. Your code is not full. Please submit the full source code about GetPostInfo
    8/19/2009 5:04 AM | ibrahimkhan
    Post A Comment
    Title:
    Name:
    Email:
    Website:
    Comment:
    Verification:
     
     

    Powered by: