Upload
stephen-g
View
1.471
Download
2
Tags:
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
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
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
Connect !!Connect !!Connect !!Connect !!
WordPress SetupWordPress SetupWordPress SetupWordPress Setup
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
Demo of MarsEditDemo of MarsEditDemo of MarsEditDemo of MarsEdit
JavaScriptJavaScript
Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!
PHPPHP
Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!
.NET Framework.NET Framework
Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!Hard Code XML? Umm.. No!
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
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/
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
Q & AQ & AQ & AQ & A