Woocommerce api does not connect

Asked

Viewed 44 times

-1

Good morning to all!! Guys, I installed Woocommerce on localhost and I want to study its api...I went there, generated the keys and I’m calling the api like this:

http://localhost/boramonstro/wp-json/wc/v2/orders?consumer_key=ck_ec1551961e3be01c1279c351413be8c88b35d8ad&consumer_secret=cs_125f7e0e142b122f24d476e5666cccf1b2b8000e

and the return is

{"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot list resources.","data":{"status":401}}

What could I have done wrong??? can it be version?? Someone give me a light!! I believe I have done everything right, but it doesn’t work!! Thank you all!! good morning!

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.