@robinpath/woocommerce
v0.1.0
Published
> WooCommerce module for RobinPath.
Keywords
Readme
@robinpath/woocommerce
WooCommerce module for RobinPath.
Why use this module?
The woocommerce module lets you:
- listProducts
- getProduct
- createProduct
- updateProduct
- deleteProduct
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/woocommerceQuick Start
1. Set up credentials
woocommerce.setCredentials "your-credentials"2. listProducts
woocommerce.listProductsAvailable Functions
| Function | Description |
|----------|-------------|
| woocommerce.setCredentials | Configure woocommerce credentials. |
| woocommerce.listProducts | listProducts |
| woocommerce.getProduct | getProduct |
| woocommerce.createProduct | createProduct |
| woocommerce.updateProduct | updateProduct |
| woocommerce.deleteProduct | deleteProduct |
| woocommerce.listOrders | listOrders |
| woocommerce.getOrder | getOrder |
| woocommerce.createOrder | createOrder |
| woocommerce.updateOrder | updateOrder |
| woocommerce.deleteOrder | deleteOrder |
| woocommerce.listCustomers | listCustomers |
| woocommerce.getCustomer | getCustomer |
| woocommerce.createCustomer | createCustomer |
| woocommerce.updateCustomer | updateCustomer |
| woocommerce.listCategories | listCategories |
| woocommerce.createCategory | createCategory |
| woocommerce.listCoupons | listCoupons |
| woocommerce.createCoupon | createCoupon |
| woocommerce.getOrderNotes | getOrderNotes |
| woocommerce.createOrderNote | createOrderNote |
| woocommerce.getReport | getReport |
| woocommerce.listShipping | listShipping |
Examples
listProducts
woocommerce.listProductsgetProduct
woocommerce.getProductcreateProduct
woocommerce.createProductIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/woocommerce";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
woocommerce.setCredentials "your-credentials"
woocommerce.listProducts
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/shopify— Shopify module for complementary functionality@robinpath/bigcommerce— BigCommerce module for complementary functionality@robinpath/square— Square module for complementary functionality@robinpath/json— JSON module for complementary functionality
License
MIT
