<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title></title>
</head>
<body>
<p style="margin: 0px;">You can define your own XML-RPC methods and the functions that handle those method calls.  That's what I meant by the handler function.  For example, I use XML-RPC in all my plug-ins to report back installation progress and errors - each plug-in makes an XML-RPC call to a custom handler (method) on my server.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Basically, you can define your own version of wp.getComments (maybe wpCustom.getComments) that focuses on MU blogs in whatever way you choose (identifying one blog by blog ID or getting information universally).<span></span></p>
<p> </p>
<div style="margin: 5px 0px 5px 0px; font-family: monospace;">
On May 14, 2010 at 2:42 PM Luke Mackenzie <luke@lukem.co.uk> wrote:<br />
<br />
> Could you expand on what you mean by the handler function?<br />
><br />
> I'm trying this call as an example:<br />
><br />
> http://codex.wordpress.org/XML-RPC/wp.getComments<br />
><br />
> Altering the blog_id has no effect on the comments returned. I have read elsewhere that the blog_id parameter is ignored. Is that still the case?<br />
><br />
> An alternative would be to use different endpoints per blog as I believe these are separate in MU?<br />
><br />
><br />
> Thanks again,<br />
><br />
> Luke.<br />
><br />
><br />
> On 14 May 2010, at 14:26, Eric Mann wrote:<br />
><br />
> > Luke,<br />
> ><br />
> > I've worked with WordPress' XMLRPC system before (using a WP-Hive<br />
> > installation with multiple separate blogs similar to a WPMU set-up).  The<br />
> > new approach you're using is definitely simpler and easier to implement (I<br />
> > tried the 5ubliminal one as well the first time).<br />
> ><br />
> > Whether or not you can distinguish between separate blogs in a MU<br />
> > installation depends entirely on how you build your handler function.  You<br />
> > can build it to distinguish the separate blogs, to only function on specific<br />
> > blogs, or to treat the entire system as a single WordPress site.  It's all<br />
> > up to you.<br />
> ><br />
> > Yes, you can retrieve and post to custom fields.<br />
> ><br />
> > Absolutely writing a plug-in is the way to go.  The only other options are<br />
> > to change core files (BAD idea) or to build it into your theme, in which<br />
> > case it could ONLY be used on MU sites using that theme.  Build it as a<br />
> > site-wide MU plug-in that can be controlled on a site-by-site basis by the<br />
> > global admin.<br />
> ><br />
> > ~Eric<br />
> ><br />
> > Eric Mann<br />
> > www.eamann.com<br />
> ><br />
> ><br />
> > -----Original Message-----<br />
> > From: wp-xmlrpc-bounces@lists.automattic.com<br />
> > [mailto:wp-xmlrpc-bounces@lists.automattic.com] On Behalf Of Luke Mackenzie<br />
> > Sent: Friday, May 14, 2010 5:52 AM<br />
> > To: wp-xmlrpc@lists.automattic.com<br />
> > Subject: [wp-xmlrpc] XMLRPC for Wordpress Mu<br />
> ><br />
> > Hi,<br />
> ><br />
> > I have been tasked with creating an API for retrieving and adding content to<br />
> > Wordpress from a flash application and legacy CMS (non-PHP). My plan is to<br />
> > utilise the existing default xmlrpc endpoint and add any additional<br />
> > functionality by creating a plugin which hooks into xmlrpc_methods.<br />
> ><br />
> > A previous attempt had been made by another developer based on the following<br />
> > code:<br />
> ><br />
> > http://blog.5ubliminal.com/posts/remote-control-wordpress-blog-xmlrpc-api/<br />
> ><br />
> > This code looks unwieldy and poorly documented to me and my preference would<br />
> > be to use this approach:<br />
> ><br />
> > http://kovshenin.com/archives/custom-xml-rpc-methods-in-wordpress/<br />
> ><br />
> > I would be grateful if anyone with experience in this area could confirm<br />
> > that:<br />
> ><br />
> > - I will be able to distinguish between separate blogs in an MU installation<br />
> > when both retrieving and posting data via XMLRPC<br />
> > - I will be able to retrieve and post to custom fields<br />
> > - writing a plugin is the way to go.<br />
> ><br />
> > We do not have the option of using Wordpress 3 as it is still in Beta and we<br />
> > are under time pressure.<br />
> ><br />
> > I would greatly appreciate appreciate any input / advice.<br />
> ><br />
> > Many thanks,<br />
> ><br />
> > Luke.<br />
> ><br />
> ><br />
> > _______________________________________________<br />
> > wp-xmlrpc mailing list<br />
> > wp-xmlrpc@lists.automattic.com<br />
> > http://lists.automattic.com/mailman/listinfo/wp-xmlrpc<br />
> ><br />
> > _______________________________________________<br />
> > wp-xmlrpc mailing list<br />
> > wp-xmlrpc@lists.automattic.com<br />
> > http://lists.automattic.com/mailman/listinfo/wp-xmlrpc<br />
><br />
> _______________________________________________<br />
> wp-xmlrpc mailing list<br />
> wp-xmlrpc@lists.automattic.com<br />
> http://lists.automattic.com/mailman/listinfo/wp-xmlrpc<br />
</div>
</body>
</html>