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!
Thanks so much, I was already planning on doing the same thing. Looking forward to trying that out!
Feel free to contribute to the project 🙂
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
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.
Any news regarding this. I would really be grateful if you could give us a simple template. Windows runtime if possible 🙂
Best Regards.
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. 🙂
I’ve seen the example. You should move the site parameter to the constructor 😉
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)…
I don’t see much sense in having to specify the domain each and every time you make a request…
I understand your concerns. I will look into it.
This blog post will be featured on the Xamarin Weekly Newsletter Issue #5, delivered on Friday September 12.
thanks a lot, Adam
Hi @msicc
Is it possible to use this PCL in Xamarin.Forms for Android and iOS?
Hi. It should be, yes.
Thanks.
How can I pm you or do you have a business web address, Is it possible to do some business?
Have a look at http://apps.msicc.net, where you also will find a way to get in contact with me