WordPressUniversal – a PCL library for WordPress based C# mobile apps

WP_CSharp_Lib

As I have already developed a news reader app for my blog, I got asked quite a few times if I want to share my code to help others creating their apps. As I need to redesign my blog reader to match the latest OS features of Windows and Windows Phone, I decided to create my WordPressUniversal library.

Automattic, the company behind WordPress, integrated a powerful JSON API into their JetPack plugin. My library is based on this API. Please make sure the JSON API is active on the blog you are developing your app for.

The library currently provides the following features:

  • getting a list posts or pages
  • getting a list of all categories
  • getting a list of comments for the site and single posts
  • supports Windows Phone 8 & 8.1 Silverlight, Windows Phone 8.1 RT, Windows 8, Xamarin.iOS and Xamarin.Android

The library deserializes all data into C# objects you can immediately work with.

It is still a work in progress, but as it provides already a bunch of options to get you started, I am making this public already.

I am constantly working on the library, so be sure to follow the project along.

Note: JetPack’s JSON API does not support guest commenting at the moment. I already reached out to Automattic to (hopefully) find a solution for this. If you cannot wait, Disqus has a portable solution for Windows Phone apps.

Please make sure to see the documentation on my GitHub page.

If you have any questions, idea, wishes for me, just post a comment here or ping on Twitter.

Happy coding everyone!

Comments 17
      1. Will do! Have you thought about creating a whole framework app (a Univeral app?) around the pcl to quickly get people starting?
        Also are you planning on adding login / commenting for registered users to the pcl?
        Cheers

        1. I am considering an Universal App template, but that needs some time. Commebting for registered and logged in users is also my list, as well as to find a solution for guest commenting.

          1. like I said already at Facebook, it is delayed due to some changes in my life that have a time impact. If you have questions in using the library, feel free to ask. 🙂

    1. You mean declare it only once for the project? I made the documentation this way to make it more understandable (as I got feedback it isn’t before)…

Join the discussion right now!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Prev
Book review: iOS Development with Xamarin Cookbook (Dimitris Tavlikos)

Book review: iOS Development with Xamarin Cookbook (Dimitris Tavlikos)

Next
How to create an Extended Splashscreen for Universal Apps

How to create an Extended Splashscreen for Universal Apps

You May Also Like

This website uses cookies. By continuing to use this site, you accept the use of cookies.  Learn more