Hello,
I have an api which have more than 1 000 records. but it only returns maximum 500 records at a time with pwg.categories.getList without pagination.
How i can return all records with api piwigo for pwg.categories.getLis
Thank you.
Piwigo version: 2.3.3
radis wrote:
Hello,
I have an api which have more than 1 000 records. but it only returns maximum 500 records at a time with pwg.categories.getList without pagination.
How i can return all records with api piwigo for pwg.categories.getLis
Thank you.
Piwigo version: 2.3.3
There is a limit to avoid returning too much data and/or generating too many sql requests ... As of now it is not possible to bypass this limit.
Offline
in config you have something like this
// Maximum number of images to be returned foreach call to the web service $conf['ws_max_images_per_page'] = 500;
however i never increase to tested it.
also you can make multiple page request and then merge the results. is very easy to merge arrays if your using the api php serialized output. i made something similar here:
http://piwigo.org/forum/viewtopic.php?p … 68#p163268
as you can see i'm using "array_merge_recursive" to merge two responses
Offline