new ProductListing(shopify)
Creates a ProductListing instance.
Parameters:
Name | Type | Description |
---|---|---|
shopify |
Shopify | Reference to the Shopify instance |
Methods
create(productId, paramsopt) → {Promise}
Creates a product listing.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
productId |
Number | The ID of the product to publish | |
params |
Object |
<optional> |
Body parameters |
Returns:
Promise that resolves with the result
- Type
- Promise
get(id, paramsopt) → {Promise}
Gets a single product by its ID.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
Number | Product ID | |
params |
Object |
<optional> |
Query parameters |
Returns:
Promise that resolves with the result
- Type
- Promise
list(params) → {Promise}
Gets a list of products.
Parameters:
Name | Type | Description |
---|---|---|
params |
Object | Query parameters |
Returns:
Promise that resolves with the result
- Type
- Promise
productIds(paramsopt) → {Promise}
Retrieves product IDs that are published to a particular application.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object |
<optional> |
Query parameters |
Returns:
Promise that resolves with the result
- Type
- Promise