Connect Windows Phone 7 Apps to WordPress using JSON


Download Code Samples

This is the Part 2 of connectivity posts for Windows Phone. In Part 1 we discussed how to connect a Windows Phone app to WordPress using the blog’s built-in XMLRPC mechanism. This time we’ll use another popular protocol called JSON.

Many of us use WordPress: it’s an excellent platform for bloggers. Every time I start a new Web project, before deciding to build it from scratch, I try to consider WordPress or other CMS to save time and effort. WordPress plugins fills many gaps, including eCommerce, Membership, CMS and hundreds of other use cases. If you are used to building everything from scratch, you probably smell danger in this lego mentality. Well, it makes sense, considering that 60% of software projects fail on time and on the budget. The paradigm of “standing on the shoulders of the giants” suddenly makes sense in the risky business of building software!

As a Windows Phone app developer you probably wonder how can you connect your Windows Phone 7 app to your WordPress blog? WordPress’ standard built-in mechanism is XMLRPC, but with a help of a free plugin called JSON API, WordPress can be accessed with JSON.

The only file we change in this example from the standard template Visual Studio has for a Panorama project is MainViewModel.cs. Cool, isn’t it?

Continue reading “Connect Windows Phone 7 Apps to WordPress using JSON”