How do I authorize Woocommerce API

The REST API works fine on my local site, but I cannot get the Woocommerce API authorisation working.
I set it up the same way (which works on servers normally) in woocommerce api settings, add permissions to the user and keys.
But when accessing it with the keys supplied:
Example: http://mysite.local/wp-json/wc/v3/products/?consumer_key=SECRET&consumer_secret=SECRET
I get a 401 forbidden response.
{"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot list resources.","data":{"status":401}}

I’m doing this to test a local development of a plugin which leverages the woocommerce api functionality.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.