Question
NOTE: Thought it was just localhost, also getting same behavior on a live site Problem: Querying even when logged in as an administrator always returns this: The query: http://localhost/site/wp-json/wp/v2/users?roles=administrator Response: { "code": "rest_user_cannot_view", "message": "Sorry, you are not allowed to filter users by role.", "data": { "status": 401 } } What ...
0
3 weeks 0 Answers 8 views

Question
I am trying to get the list of orders from my store via Woocommerce REST API. http://wc.subratasarkar.com/wp-json/wc/v2/orders?consumer_key=xxxx&consumer_secret=xxxx This is what I am getting. {"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot list resources.","data":{"status":401}} I created a Rest API key from Woocommerce > Settings > Advanced > ...
0
, 3 weeks 0 Answers 12 views