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!");
}