Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WooCommerce API for mobile App

i am planning to develop a native mobile Android App for WooCommerce shops.

I had a look at their REST API documentation here: http://docs.woocommercev2.apiary.io/ I already started to test it but when i do different calls

GET /orders let's say it returns all the orders of the shop.

Does anyone have any idea how can i develop a enduser app using their API.

for example:

GET /products

PUT /order (create a order for the logged in User)

GET /order (get orders of the logged in User)

Any idea is appreciated :)

Thanks in advance.

like image 451
Agli Panci Avatar asked Dec 15 '14 17:12

Agli Panci


1 Answers

I would suggest this steps

First thing you can Enable Api for woocommerce from the backend – http://docs.woothemes.com/document/woocommerce-rest-api/

https://www.npmjs.com/package/woocommerce use this link, which has all the methods to interacting with woocommerce. Otherwise using lightweight middleware, it help to connect woocommerce server & return JSON data to your app.

Write a service using ionic framework and talk to your thin middleware client. Do not forget to cache the data (using local storage), so that you don’t hit the server all the time. - Contus M Comm

like image 122
user93884 Avatar answered Sep 26 '22 00:09

user93884