Skip to content

Commit 7102ce2

Browse files
authored
Merge pull request #26 from artistro08/master
Seems to be working fine. Thanks for contributing
2 parents da89ff8 + 46abab1 commit 7102ce2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/PrintfulProducts.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ public function __construct(PrintfulApiClient $printfulClient)
4444
* @throws Exceptions\PrintfulApiException
4545
* @throws Exceptions\PrintfulException
4646
*/
47-
public function getProducts($offset = 0, $limit = 20)
47+
public function getProducts($offset = 0, $limit = 20, $status = 'all', $search = '')
4848
{
4949
$requestData = [
5050
'offset' => (int)$offset,
51-
'limit' => (int)$limit,
51+
'limit' => (int)$limit,
52+
'status' => (string)$status,
53+
'search' => (string)$search,
5254
];
5355

5456
$response = $this->printfulClient->get(PrintfulProducts::ENDPOINT_PRODUCTS, $requestData);

0 commit comments

Comments
 (0)