Skip to content

Commit ce8ee35

Browse files
committed
Update README.md
1 parent d6ac192 commit ce8ee35

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ $tenantResource = new TenantResource();<br>
1717
$tenant = $tenantResource->getTenant([tenantId]);<br>
1818
<br>
1919
<B>Get Products</B><br>
20-
$apiContext = new ApiContext($tenant);
21-
$productResource = new ProductResource($apiContext);
22-
$productCollection = $this->object->getProducts(DataViewMode::LIVE, 0, 200, null, null, null, null, null);
20+
$apiContext = new ApiContext($tenant);<br>
21+
<B>Note:</B> You might need to create an API Context with a specific Mastercatalog or catalogId if you own a multi-catalog tenant<br>
22+
$productResource = new ProductResource($apiContext);<br>
23+
$productCollection = $productResource->getProducts(DataViewMode::LIVE, 0, 200, null, null, null, null, null);<br>
2324
<br>
2425
<B>Get Orders - Filter by date</B><br>
2526
$orderResource = new OrderResource($apiContext);<br>

0 commit comments

Comments
 (0)