Reputation: 338
There are a few posts on something similar, however I feel mine is unique.
So below I have included some screenshots for proof. I have followed the documentation and have restarted a few times now. Each time I restarted, I had been solving issues after issues. So lets start by what I have done
but my errors remain the same.
{
"code": "woocommerce_rest_cannot_view",
"message": "Sorry, you cannot list resources.",
"data": {
"status": 401
}
}
Here are some images for your reference https://i.sstatic.net/P5C5o.jpg the consumer and secret key in the images no longer work. As I have cleaned and installed many fresh Wordpress now. If anybody had similar issue and found a solution to this. Please share them.
Websites that I had looked into
https://sgwebpartners.com/how-to-use-woocommerce-api/ https://help.robotninja.com/en/articles/2015407-woocommerce-api-authentication-issues https://woocommerce.github.io/woocommerce-rest-api-docs/#rest-api-keys
and many more, but those did not suggest any type of solution besides the usual, you have done something wrong and did not follow the documentation.
Upvotes: 0
Views: 1287
Reputation: 338
I solved this a while back.
The solution was that apparently not all of the pages were secured with SSL
Thus I installed an add-on to make everything secure with SSL. Then it worked.
Upvotes: 0
Reputation: 112
Make sure that you are providing correct API url and Authorization you can use any of(basic auth or 0auth1.0). [check screenshot] https://i.sstatic.net/Q2IlM.png
Upvotes: 0