WooCommerce REST API "woocommerce_rest_cannot_view "

admin

Administrator
Staff member
when i paste this link

<a href="http://localhost/wordpress/wp-json/wc/v2/products?consumer_key=ck_" rel="nofollow noreferrer">http://localhost/wordpress/wp-json/wc/v2/products?consumer_key=ck_</a>*******************&amp;consumer_secret=cs_********************

it show for me this error message

<blockquote>
{"code":"woocommerce_rest_cannot_view","message":"D\u00e9sol\u00e9, vous ne pouvez pas lister les ressources.","data":{"status":401}}
</blockquote>

by the way the cosumers key &amp; secret are correct