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

MetaWeblog API .NET: NewPost

C# sample code using the Tortuga MetaWeblog .NET API to create and upload a new blog post.
The Tortuga Beta .NET Component can be downloaded from MetaWeblog .NET
The download contains an .NET class library (DLL) that needs to be referenced from your C# or VB.NET project.

// Use the Blogger 1.0 API to get the Blog ID
Tortuga.Blogger1 blogger1 = new Tortuga.Blogger1();
    
blogger1.Login = "tortuga";
blogger1.Password = "myPassword";
blogger1.ServiceUrl = "http://www.squarespace.com/do/process/external/PostInterceptor";
    
bool success = blogger1.GetUsersBlogs();
if (!success || (blogger1.NumBlogs == 0)) return;

string blogId = blogger1.GetBlogId(0);

// Use MetaWeblog to create a new post
Tortuga.MetaWeblog mwlog = new Tortuga.MetaWeblog();
mwlog.Login = "tortuga";
mwlog.Password = "myPassword";
mwlog.ServiceUrl = "http://www.squarespace.com/do/process/external/PostInterceptor";

string postId;
bool publish = true;
postId = mwlog.NewPost(blogId, "MetaWeblog .NET API", "Posted from the Tortuga MetaWeblog .NET API", publish);

MessageBox.Show("This ID of the post created = " + postId);

Print | posted on Sunday, September 25, 2005 11:56 AM |

Feedback

Gravatar

# re: MetaWeblog API .NET: NewPost

This is great.
Is there any way to assign categories to the new post?
I am using Wordpress for hosing my blog and I would like to assign 1 or more categories when I make a new post.
9/24/2006 3:31 PM | Dominic
Gravatar

# re: MetaWeblog API .NET: NewPost

Hi,

I'd also like to know about categories. Is there any further info on that.

Thanks.
8/16/2007 3:21 AM | Ian Walsh
Gravatar

# re: MetaWeblog API .NET: NewPost

Is there a new download page? The one above doesn't seem to work
2/18/2008 10:27 AM | Andrew
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 

Powered by: