-
Notifications
You must be signed in to change notification settings - Fork 77
Not able to get orders between dates #36
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
Comments
I get the same problem as well. Calling the woo-commerce endpoint via CURL is fine, for example:
Furthermore, using this parameters is working like a charm as well: // params.put("after", "2021-02-01T00:00:00.000Z");
// params.put("before", "2021-02-13T00:00:00:000Z");
params.put("context", "view");
params.put("per_page", "20");
params.put("page", "1");
params.put("status", "any");
params.put("orderby", "title"); Only when we uncomment one of @omandryk (sorry for mentioned you here), but do you have any idea what's going on? |
…y in OAuthSignature
Issue Fixed. Got the solution we need to encode the dates.
|
@kiranuw I think this issue should not closed yet, as currently there's PR from me about this issue. |
Hi,
I wanted to get woo-commerce orders between 2 dates. I tried before and after params but it is throwing the below error. please help me .
Code :
WooCommerce wooCommerce = new WooCommerceAPI(config, ApiVersionType.V3);
// params.put("per_page", "1");
params.put("after", "2021-03-01T00:00:00");
params.put("before", "2021-02-16T23:59:59");
Error
java.lang.RuntimeException: Can't parse retrieved object: {code=woocommerce_rest_authentication_error, message=Invalid signature - provided signature does not match., data={status=401}}
The text was updated successfully, but these errors were encountered: