Skip to content

Commit 46abab1

Browse files
authored
Update arrangement of getProducts request method
1 parent 0a77627 commit 46abab1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PrintfulProducts.php

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

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

0 commit comments

Comments
 (0)