Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 670 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 670 Bytes

WooCommerceAPI for React Native

copy the WooCommerceAPI.js on your project

Install dependencies:

npm i crypto-js oauth-1.0a

Library usage:

    const WooCommerce = new WooCommerceAPI({
        url: SITE_URL,
        ssl: true,
        consumerKey: CONSUMER_KEY,
        consumerSecret: CONSUMER_SECRET,
        wpAPI: true,
        version: 'wc/v3',
        queryStringAuth: true
    });
    
    WooCommerce.get(props.query, props.data)
        .then((resp) => resolve(resp)
        .catch((err) => reject(err))
    )

Full documentation on official page: WooCommerce API ref.