WordPress Api authentication error
-
I am having this problem “{“code”:”woocommerce_rest_cannot_view”,”message”:”Sorry, you cannot list resources.”,”data”:{“status”:401}}..I found a a bunch of code for solution.
But I don’t know where to use them inside WordPress ?Codes:
require “woocommerce_api”woocommerce = WooCommerce::API.new(
“https://example.com”,
“consumer_key”,
“consumer_secret”,
{
wp_json: true,
version: “wc/v1”,
query_string_auth: true
}
)Please help me
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘WordPress Api authentication error’ is closed to new replies.