-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time not accepted in params #31
Comments
I found a solution... not 100% if this is the correct way to do it but its working for me at least. Within EtsyAPI.php, add the required parameters for your call. private function prepareParameters($params) {
$query_pairs = array();
$allowed = array(
"limit",
"offset",
"page",
"sort_on",
"sort_order",
"include_private",
"language",
"min_created",
"max_created",
"max_last_modified",
"min_last_modified",
"was_paid",
"was_shipped"
); |
You are right, that wasn't considered at the time this library was built. I'm thinking to merge |
I did a quick fix in this branch to show the idea. If you can play with it would be great. Thanks! FYI, I didn't even try it once |
@lambooni can you try to set |
Sorry... maybe I missed something here? In your main branch, using this also works... $receipts = $api->findAllShopReceipts(array(
'params' => array(
'shop_id' => $apikeys->shop_id,
'limit' => $limit,
'page' => $page
),
'data' => array(
'min_last_modified' => strtotime("-1 days"), //modified in the last day
))); Seems like you have either fixed it, or I was not using it correctly in the first place! |
Yes! I thought it could work. Great. Thanks |
Hi, Params For now, I use "local" copy of methods.json file with Regards, Pawel. |
Hey,
I am unable to get any time parameters to be accepted within findAllShopReceipts. I have tried a few things and in each case the time parameter is ignored and results from all time are returned. e.g.
In the response you can see the time has not been accepted;
Does anyone have any ideas?
The text was updated successfully, but these errors were encountered: