You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I would like to thank you for providing such useful library. I have been developing a microservice-based application and using your library multiple times.
Activity
omandryk commentedon Jan 31, 2020
Hi Yilmaz,
if you are using WC v3 try with the following params:
Read more on WC Rest API Docs: http://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-products
Best regards,
Oleksandr Mandryk
yilmazchef commentedon Mar 23, 2020
Hello Oleksandr,
I have tried
params.put("page", "1");
params.put("per_page", String.valueOf(Integer.MAX_VALUE));
however, I received an error..
Is there any other option.
I have coded another solution, I get data 100 products per page, and trying to cache them.
but it would be amazing if I could get all data..
craftedsro commentedon Apr 7, 2021
To get all products you have to work with page...
import java.util.List;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.icoderman.woocommerce.ApiVersionType;
import com.icoderman.woocommerce.EndpointBaseType;
import com.icoderman.woocommerce.WooCommerce;
import com.icoderman.woocommerce.WooCommerceAPI;
import com.icoderman.woocommerce.oauth.OAuthConfig;
public class Test {
}