Posting to Wordpress via C#

  • Thread starter Thread starter Spondishy
  • Start date Start date
S

Spondishy

Hi,

I've been digging around the web but haven't found a really good
example of how to create a new post in a wordpress blog.

I've found metaWeblog.newPost discussed in a few places, but I'd like
more info (or a working example if possible). Especially with posting
into specific categories.

Thanks in advance.
 
Spondishy said:
I've been digging around the web but haven't found a really good
example of how to create a new post in a wordpress blog.

I've found metaWeblog.newPost discussed in a few places, but I'd like
more info (or a working example if possible). Especially with posting
into specific categories.

WordPress is web based so you send the appropriate HTTP requests.

You can sniff a session between a browser and WordPress so see
what form parameters to send.

And remember to keep sessions state to remember login.

Arne
 
It's even easier than that. Wordpress supports the metaWeblog XML RPC
API, the details of which can be found here:

http://www.xmlrpc.com/metaWeblogApi

To the OP, in order to send these requests, you can use the
HttpWebRequest/HttpWebResponse classes.
 
It's even easier than that. Wordpress supports the metaWeblog XML RPC
API, the details of which can be found here:

http://www.xmlrpc.com/metaWeblogApi

To the OP, in order to send these requests, you can use the
HttpWebRequest/HttpWebResponse classes.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


WordPress is web based so you send the appropriate HTTP requests.
You can sniff a session between a browser and WordPress so see
what form parameters to send.
And remember to keep sessions state to remember login.

Here's a free component to add MetaWebLog API support directly to your
app: http://www.tagtooga.com/pg/MetaWeblog-DotNet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top