Skip to content

Commit

Permalink
add to params
Browse files Browse the repository at this point in the history
allow params such as min_created, max_created to work.
  • Loading branch information
booni3 committed Mar 27, 2018
1 parent 0e22183 commit 7355b5b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/Etsy/EtsyApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,23 @@ private function prepareData($data) {

private function prepareParameters($params) {
$query_pairs = array();
$allowed = array("limit", "offset", "page", "sort_on", "sort_order", "include_private", "language");
$allowed = array(
"limit",
"offset",
"page",
"sort_on",
"sort_order",
"include_private",
"language",
"include_private",
"language",
"min_created",
"max_created",
"max_last_modified",
"min_last_modified",
"was_paid",
"was_shipped"
);

if ($params) {
foreach($params as $key=>$value) {
Expand Down

0 comments on commit 7355b5b

Please sign in to comment.