Announcement

  •  » Requests
  •  » pwg.categories.getList pagination

#1 2016-12-12 12:17:18

radis
Guest

pwg.categories.getList pagination

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

 

#2 2016-12-19 14:25:08

rvelices
Piwigo Team
2005-12-29
1960

Re: pwg.categories.getList pagination

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

 

#3 2016-12-24 11:36:40

eliz82
Member
Romania
2016-04-27
279

Re: pwg.categories.getList pagination

in config you have something like this

Code:

// 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

 
  •  » Requests
  •  » pwg.categories.getList pagination

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2021 · Contact