Blogging and News Syndication Software

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

My Links

News

Tortuga Components / Software Tools Home

See Also: Chilkat Software

Article Categories

Archives

Post Categories

Recommended

Blogger 1.0 API with HTTP Proxy

C# example using the Tortuga Blogger 1.0 API .NET Component to create a new blog post via an HTTP proxy server.


		// Create a new blog post using the Blogger 1.0 API
		// with an HTTP Proxy.
		Tortuga.Blogger1 blogger1 = new Tortuga.Blogger1();
		    
		blogger1.Login = "worldwideweb_x";
		blogger1.Password = "password";
		blogger1.ServiceUrl = "http://www.livejournal.com/interface/blogger";
		// The HTTP Proxy can be an IP address or IP domain name.
                blogger1.ProxyDomain = "80.35.189.83";
                blogger1.ProxyPort = 80;
                    
		bool success = blogger1.GetUsersBlogs();
		if (success && (blogger1.NumBlogs > 0))
		{
		    // Get the ID of the 1st blog.
		    string blogId = blogger1.GetBlogId(0);
		    bool publish = true;
		    // Create and send a new post the blog, returning the ID of the post created.
		    string postId = blogger1.NewPostWithTitle(blogId,
			"This is the title ZZZ", "This is the content ZZZ", publish);
			
		    MessageBox.Show("Post ID = " + postId);
		}
		else
		{
		    MessageBox.Show("Failed to get users's blogs!");
		}

Print | posted on Friday, September 30, 2005 9:12 AM |

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 

Powered by: