new Collection(shopify)
Creates a Collection instance.
Parameters:
Name | Type | Description |
---|---|---|
shopify |
Shopify | Reference to the Shopify instance |
Methods
products(id, paramsopt) → {Promise}
Retrieves a list of products belonging to a collection.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
Number | Collection ID | |
params |
Object |
<optional> |
Query parameters |
Returns:
Promise that resolves with the result
- Type
- Promise