WooCommerce API Rest problem
-
My problem is that when I consume the woocommerce API I get the following error:
“Code”: “woocommerce_api_authentication_error”,
“Message”: “Invalid signature – provided signature does not match.”
My code is in php and it is the following:<?php require __DIR__ . '/vendor/autoload.php'; use Automattic\WooCommerce\Client; $woocommerce = new Client( 'https://url.com/', 'ckey', 'cskey', [ 'wp_api' => true, 'version' => 'wc/v3', ] ); print_r($woocommerce->get('')); ?>
I’ve read out there that it’s because my site is http,
I would like to create a signature that I think that’s what I need, and the Woocommerce documentation I don’t understand (https://woocommerce.github.io/woocommerce-rest-api-docs/?php#authentication-over-http)I hope your help, thanks
- The topic ‘WooCommerce API Rest problem’ is closed to new replies.