Answer the question
In order to leave comments, you need to log in
What methods to save WooCommerce API authorization exist?
Hello.
I tried to pass API authorization from under React with two methods:
const wp = new WPAPI({
endpoint: 'https://site',
username: 'user',
password: 'pass'
});
const WooCommerce = new WooCommerceAPI({
url: 'https://site', // Your store URL
consumerKey: 'ck_65d32afa5c7243900115f9ac8da877bcd436e517', // Your consumer key
consumerSecret: 'cs_65e8a9e9d16762e3aae880478ba595ad59f04841', // Your consumer secret
wpAPI: 'true',
version: 'wc/v3' // WooCommerce WP REST API version
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question