Answer the question
In order to leave comments, you need to log in
How to set up access to the site to WordPress via Api through WooCommerce?
Hello!
I didn’t have to program in PHP, so I clarify on this forum thread.
I am developing mobile applications for Android. Now the project is an online store. The idea is that product information (title, description, price, etc.) will be pulled from your site, made on WordPress.
Installed WP REST API and WooCommerce plugins. The link site.ru/wp-json/wc/v2 has the required category - products, from where you can "hook" information on products, but when you go to the link site.ru/wp-json/wc/v2/products, it happens mistake:
code "woocommerce_rest_cannot_view"
message "Вы не можете просматривать список ресурсов."
data
status 401
Answer the question
In order to leave comments, you need to log in
Installed WP REST API plugins
401 Unauthorized – Authentication or permission error, eg incorrect API keys
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question