Using the WooCommerce API in mobile development

WordPress is (in my opinion) the best content management system to be used as a backend for developing mobile apps. Some app projects utilize Adobe’s PhoneGap, which is a technology that combines HTML, CSS, and JavaScript in a web browser view to connect a phone to the WordPress install. While this does the job, PhoneGap does not deliver a true native app. At Zeek, we emphasize native and hybrid code that interfaces with WordPress through various APIs. This enables us to deliver a high quality product that functions better than its PhoneGap counterparts might. However, we recently ran into problems creating an iOS app with eCommerce.

We selected WooCommerce as our eCommerce platform, as it has become the gold standard for WordPress storefronts. WooCommerce has a JSON API, but as we have discovered, it appears that it was designed primarily for administrative purposes. It has very little usable functionality to offer a customer-facing mobile app. I was brought in to help implement parts of the API that weren’t in the WordPress or WooCommerce JSON APIs.

WARNING: This post is about to get real. And by “real,” I mean “technical.”

Read More