Replies: 0
I have followed the directions in the Woo Commerce REST API Docs, and have my API key and secret as generated through the Woo Commerce Settings tab.
I am sending a GET to the URL below, with the Authorization Header as “Basic [Base64Encoded apiKey:apiSecret]” (filled in with my key and secret, then encoded to abase 64).
I am trying to access “/wp-json/wc/v1/products”, but the response I get is this:
{“code”:”woocommerce_rest_cannot_view”,”message”:”Sorry, you cannot list resources.”,”data”:{“status”:401}}
However, if I install the WP Basic Auth plugin into WordPress, then my request goes through, but then my public commerce website is no longer accessible.
Any ideas? Is there something else I need to configure in WordPress outside of the WooCommerce plugin?