WooCommerce REST API not working
-
I have three environments of WordPress with WooCommerce plugin and I am only able to make the REST API calls using WooCommerce work on the Dvmt Environment.
I am using the Python wrapper called WooCommerce 1.2.0 and while trying to get the product categories it failed in QA and PROD environment.
I am using the following code
“…
from woocommerce import APIwcapi = API(
url=”https://888.888.888.888″,
consumer_key=”ck_9999999999999999999999999999″,
consumer_secret=”cs_9999999999999999999999999999″,
wp_api=True,
version=”wc/v1”
)r = wcapi.get(“products/categories”)
…”Error message received “…ValueError: No JSON object could be decoded…” as the r.text is html.
Any advice?
- The topic ‘WooCommerce REST API not working’ is closed to new replies.