@robinpath/shopify
v0.1.1
Published
Shopify module for RobinPath.
Readme
@robinpath/shopify
Shopify module for RobinPath.
Why use this module?
The shopify module lets you:
- List products in the store.
- Get a product by ID.
- Create a new product.
- Update an existing product.
- List orders with optional filters.
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/shopifyQuick Start
1. Set up credentials
shopify.setCredentials "my-store" "shpat_xxx"2. List products in the store.
shopify.listProducts {"limit":10}Available Functions
| Function | Description |
|----------|-------------|
| shopify.setCredentials | Set Shopify store credentials. |
| shopify.listProducts | List products in the store. |
| shopify.getProduct | Get a product by ID. |
| shopify.createProduct | Create a new product. |
| shopify.updateProduct | Update an existing product. |
| shopify.listOrders | List orders with optional filters. |
| shopify.getOrder | Get an order by ID. |
| shopify.listCustomers | List customers. |
| shopify.getCustomer | Get a customer by ID. |
| shopify.getInventory | Get inventory levels for an item. |
| shopify.countProducts | Get total product count. |
| shopify.countOrders | Get total order count with optional status filter. |
Examples
List products in the store.
shopify.listProducts {"limit":10}Get a product by ID.
shopify.getProduct "123456789"Create a new product.
shopify.createProduct {"title":"New Product","body_html":"<p>Description</p>","vendor":"My Brand"}Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/shopify";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
shopify.setCredentials "my-store" "shpat_xxx"
shopify.listProducts {"limit":10}
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/woocommerce— WooCommerce 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
