I create an application for Ionic + WC-API. When trying to gain access to goods, it writes a non-valid key. Created a key in Woocommerce Admin. On the Internet, I found that I need more authentication. It seems there is a working code, but I insert the code and it does not work (the state simply does not open):
Once: Call WooCommerce 2.1 REST APT in Ionic Framework using Ouath1.a
Two: santoshshinde2012.blogspot.ru/2016/03/woocommerce-rest-api-with-ionic.html#comment-form

Keys set their own. These libraries downloaded and connected to index.html:

hmac-sha1.js enc-base64.js oauth-1.0a.js oauth-signature.js 

But still does not work. How to get a list of products sitename.ru/wc-api/v3/products and pass this authentication. The application is debugged in VisualStudio 2015 (there is a local server with Internet access). When I was doing the output of posts through the WordPress API - everything works fine, but with WC there is such a problem.

  • Little information - where is the WC server, what errors and replies-requests are in the console. Most likely you have CORS restrictions and there are no valid headers that allow the browser inside the ionic to make requests. - Serge Markov

0