13
Talking to Talking to WordPress via WordPress via XML-RPC XML-RPC Allowing the outside world to talk to your WordPress installation Allowing the outside world to talk to your WordPress installation

Talking to WordPress via XML-RPC

Embed Size (px)

DESCRIPTION

My slides for my Feb 18th, 2012 talk at WordCamp MiamiI talk about using WordPress's built in XML-RPC server to remote talk to WordPress data

Citation preview

Page 1: Talking to WordPress via XML-RPC

Talking to Talking to WordPress via XML-WordPress via XML-

RPCRPC

Allowing the outside world to talk to your WordPress installationAllowing the outside world to talk to your WordPress installation

Page 2: Talking to WordPress via XML-RPC

Who Am I ?Who Am I ?Who Am I ?Who Am I ?

• AuctionAnything.comAuctionAnything.com• ASP.NET/MS SQLASP.NET/MS SQL• jQuery/JavaScriptjQuery/JavaScript• Mobile DeveloperMobile Developer

• @MorningZ@MorningZ

Stephen GilboyStephen GilboyStephen GilboyStephen Gilboy

Page 3: Talking to WordPress via XML-RPC

Connect !!Connect !!Connect !!Connect !!

Page 4: Talking to WordPress via XML-RPC

WordPress SetupWordPress SetupWordPress SetupWordPress Setup

Page 5: Talking to WordPress via XML-RPC

What did that just do?What did that just do?What did that just do?What did that just do?Url Endpoint Created:

http://www.my-wp-site.com/xmlrpc.php

Allows Posting of XMLhttp://en.wikipedia.org/wiki/XML-RPC

Page 6: Talking to WordPress via XML-RPC

Demo of MarsEditDemo of MarsEditDemo of MarsEditDemo of MarsEdit

Page 7: Talking to WordPress via XML-RPC

JavaScriptJavaScript

Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!

Page 8: Talking to WordPress via XML-RPC

PHPPHP

Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!

Page 9: Talking to WordPress via XML-RPC

.NET Framework.NET Framework

Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!

Page 10: Talking to WordPress via XML-RPC

Wrap UpWrap UpWrap UpWrap Up

• With a simple checkbox, you With a simple checkbox, you can allow outside apps to can allow outside apps to read/write against your read/write against your WordPress site using the WordPress site using the XML-RPC protocolXML-RPC protocol

• Utilize libraries to avoid Utilize libraries to avoid dealing with direct XMLdealing with direct XML

Page 11: Talking to WordPress via XML-RPC

Helpful LinksHelpful LinksHelpful LinksHelpful LinksWordPress’ official list of XML-RPC methodshttp://codex.wordpress.org/XML-RPC_wp

Documentation for the JSON API pluginhttp://wordpress.org/extend/plugins/json-api/other_notes/

XML-RPC for JavaScript usehttp://daniloercoli.wordpress.com/2010/05/10/xml-rpc-library-for-wordpress/

XML-RPC for PHP usehttp://life.mysiteonline.org/archives/161-Automatic-Post-Creation-with-Wordpress,-PHP,-and-XML-RPC.html/

XML-RPC for .NET usehttp://www.xml-rpc.net/

XML-RPC Desktop Clientshttp://www.red-sweater.com/marsedit/http://en.wordpress.com/windows-live-writer/

More clients/infohttp://en.wikipedia.org/wiki/XML-RPC/

WordPress’ official list of XML-RPC methodshttp://codex.wordpress.org/XML-RPC_wp

Documentation for the JSON API pluginhttp://wordpress.org/extend/plugins/json-api/other_notes/

XML-RPC for JavaScript usehttp://daniloercoli.wordpress.com/2010/05/10/xml-rpc-library-for-wordpress/

XML-RPC for PHP usehttp://life.mysiteonline.org/archives/161-Automatic-Post-Creation-with-Wordpress,-PHP,-and-XML-RPC.html/

XML-RPC for .NET usehttp://www.xml-rpc.net/

XML-RPC Desktop Clientshttp://www.red-sweater.com/marsedit/http://en.wordpress.com/windows-live-writer/

More clients/infohttp://en.wikipedia.org/wiki/XML-RPC/

Page 12: Talking to WordPress via XML-RPC

Contacting MeContacting MeContacting MeContacting Me

• Email:Email:[email protected]@[email protected]@morningz.com

• LinkedIn:LinkedIn:[email protected]@morningz.com

• Twitter: Twitter: @MorningZ@MorningZ

• Link to this content:Link to this content:http://bit.ly/wcmia_xmlrpchttp://bit.ly/wcmia_xmlrpchttp://bit.ly/wcmia_xmlrpc_ziphttp://bit.ly/wcmia_xmlrpc_zip

Page 13: Talking to WordPress via XML-RPC

Q & AQ & AQ & AQ & A