[wp-hackers] XML-RPC and Pages

aditya sharma sharmaaditya333 at gmail.com
Mon Feb 28 17:15:35 UTC 2011


http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Frameworks/Q_24866698.html

Hope this helps.


Warm Regards
Aditya Sharma




On Mon, Feb 28, 2011 at 9:00 PM, Alex Andrews <awgandrews at gmail.com> wrote:

> Thanks for this everyone. Wonderful stuff.
>
> Just out of interest, is it possible to use any old custom post type
> there? Could be very useful indeed, as one could write a script that,
> say, updates a product list in an Excel spreadsheet into a live
> product list on the website or similar.
>
> All the best,
>
> Alex
>
> On 28 February 2011 15:20, Eric Mann <eric at eam.me> wrote:
> > Just to get you started, the calls to add or edit pages are:
> >
> >
> >   - metaWeblog.newPost
> >   - metaWeblog.editPost
> >
> >
> > You just specify 'post_type=page' to create a page rather than a post.
> >  WordPress stores both content types the same way in the database.
>  There's
> > deeper detail regarding the parameters you need to send in the code
> itself
> > (see /wp-includes/class-wp-xmlrpc-server.php).  You can also view the
> > documentation I've been building on my blog for the XMLRPC API ... the
> > MetaWeblog calls are documented here:
> > http://mindsharestrategy.com/wp-xmlrpc-metaweblog/.
> >
> > Just for the sake of completeness, there are a couple of additional RPC
> > calls in the wp namespace for dealing with pages:
> >
> >   - wp.newPage
> >   - wp.editPage
> >
> > These calls are just wrappers for the metaWeblog calls I referenced
> above.
> >  They assume you're working with pages, set the appropriate variables for
> > you, then pass everything off to their metaWeblog equivalents.  If you're
> > building publicly-available code, I'd recommend using the wp versions
> > because it will be explicitly obvious what your code is trying to do.  If
> > you're doing things just for yourself, it doesn't really make a
> difference.
> >
> > On Mon, Feb 28, 2011 at 5:26 AM, Alex Andrews <awgandrews at gmail.com>
> wrote:
> >
> >> Hey,
> >>
> >> Thanks very much for this. In answer:
> >>
> >> 2. Ruby.
> >>
> >> All the best,
> >>
> >> Alex
> >>
> >> On 28 February 2011 13:23, prasath nadarajah <n.prasath.002 at gmail.com>
> >> wrote:
> >> > Hi Alex
> >> > 1.You can add or edit pages over XML-RPC
> >> > 2.It depends on the language you use. what language you are using?
> >> >
> >> > There is a specific mailing lists to discuss things related to XMLRPC
> >> > http://codex.wordpress.org/Mailing_Lists
> >> >
> >> > <http://codex.wordpress.org/Mailing_Lists>You will get more help
> there.
> >> >
> >> > On Mon, Feb 28, 2011 at 6:20 PM, Alex Hempton-Smith <
> >> hempsworth at gmail.com>wrote:
> >> >
> >> >> The Codex has information about the XML-RPC WordPress API:
> >> >>
> >> >> http://codex.wordpress.org/XML-RPC_wp#wp.editPage
> >> >>
> >> >> However, it's current as of 2.7.1, so I'm not sure if anything has
> >> changed.
> >> >>
> >> >> Kind regards,
> >> >> Alex Hempton-Smith
> >> >>
> >> >> www.alexhemptonsmith.com
> >> >> www.twitter.com/hempsworth
> >> >>
> >> >>
> >> >>
> >> >> On Mon, Feb 28, 2011 at 12:33 PM, Alex Andrews <awgandrews at gmail.com
> >
> >> >> wrote:
> >> >>
> >> >> > Hi all,
> >> >> >
> >> >> > Two questions:
> >> >> >
> >> >> > 1) Can I add or edit pages over XML-RPC?
> >> >> > 2) If I can, is there a guide somewhere, if I can't, is there an
> >> >> > alternative?
> >> >> >
> >> >> > All the best,
> >> >> >
> >> >> > Alex
> >> >> > _______________________________________________
> >> >> > wp-hackers mailing list
> >> >> > wp-hackers at lists.automattic.com
> >> >> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >> >> >
> >> >> _______________________________________________
> >> >> wp-hackers mailing list
> >> >> wp-hackers at lists.automattic.com
> >> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >> >>
> >> > _______________________________________________
> >> > wp-hackers mailing list
> >> > wp-hackers at lists.automattic.com
> >> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >> >
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list