Assuming allproducts is required, the following result was found.
the above plus some calculation to work out how many times to loop should retrieve every thing: // // initialize l_AllProducts = List(); v_TotalCategories = 0; v_TotalProducts = 0; v_Page = 1; // do not set this to zero!!! v_PerPage = 100; // // API...