Skip to content

HMDCrew/WooCommerceAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

WooCommerceAPI for React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published