Skip to content

Commit e5d166b

Browse files
committed
Fixes #17 Product Listing Resource added
1 parent 79c21ef commit e5d166b

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ Some resources are available directly, some resources are only available through
277277
- Product -> Variant -> [Metafield](https://help.shopify.com/api/reference/metafield)
278278
- Product -> [Event](https://help.shopify.com/api/reference/event/)
279279
- Product -> [Metafield](https://help.shopify.com/api/reference/metafield)
280+
- [ProductListing](https://help.shopify.com/api/reference/sales_channels/productlisting)
280281
- [ProductVariant](https://help.shopify.com/api/reference/product_variant)
281282
- ProductVariant -> [Metafield](https://help.shopify.com/api/reference/metafield)
282283
- [RecurringApplicationCharge](https://help.shopify.com/api/reference/recurringapplicationcharge)
@@ -380,6 +381,10 @@ The custom methods are specific to some resources which may not be available for
380381
- [calculate()](https://help.shopify.com/api/reference/refund#calculate)
381382
Calculate a Refund.
382383

384+
- ProductListing ->
385+
- [productIds()](https://help.shopify.com/api/reference/sales_channels/productlisting#product_ids)
386+
Retrieve product_ids that are published to your app.
387+
383388
- RecurringApplicationCharge ->
384389
- [activate()](https://help.shopify.com/api/reference/recurringapplicationcharge#activate)
385390
Activate a recurring application charge

lib/ProductListing.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* @author Tareq Mahmood <tareqtms@yahoo.com>
5+
* Created at: 6/2/18 1:38 PM UTC+06:00
6+
*
7+
* @see https://help.shopify.com/api/reference/sales_channels/productlisting Shopify API Reference for Shipping Zone
8+
*/
9+
10+
namespace PHPShopify;
11+
12+
13+
class ProductListing extends ShopifyResource
14+
{
15+
/**
16+
* @inheritDoc
17+
*/
18+
protected $resourceKey = 'product_listing';
19+
20+
/**
21+
* @inheritDoc
22+
*/
23+
protected $customGetActions = array (
24+
'product_ids' => 'productIds',
25+
);
26+
}

0 commit comments

Comments
 (0)