How to authorize REST API to server with password
-
There is a server with password protection (.htaccess). So, standard WooCommerce REST API authentication doesn’t work with settings:
$woocommerce = new Client( 'https://test.site.com', 'ck_--------------', 'cs_--------------', [ 'wp_api' => true, 'version' => 'wc/v1', 'timeout' => 500, ] );
And I get an error:
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn’t understand how to supply the credentials required.
How can I authorize my application?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to authorize REST API to server with password’ is closed to new replies.