I am setting up a new website on WordPress with woocommerce, I need to show products on my application so, I am using Woocommerce Rest API but did not work i am using PHP 7.0, WordPress version 5.0.9 & woocommerce version 3.5+
I am trying these link
it keeps showing me this msg in JSON format
{ "code": "woocommerce_rest_cannot_view", "message": "Sorry, you cannot list resources.", "data": { "status": 401 } } but i want all those products who have category id 16