[Web API] Request pictures/categories modified since last sync #1373

Open
opened 2026-10-05 00:41:16 +02:00 by adam · 0 comments
Owner

Hi everyone !

I have recently been developing my own Android application for Piwigo, since I wanted to add features a bit different from those present in the current app.

I realized that in order to sync the changes between app and server, (e.g. to get recently added/deleted/moved photos), I need to call pwg.categories.getList and pwg.categories.getImages for all categories and all pictures all the time.

I think it would be really useful if we had an option to request IDs of pictures and categories that have been modified since the last sync date. It could be an additional parameter 'f_min_date_modified' in methods pwg.categories.getList and pwg.categories.getImages ?

This way we could call this methods regularly in a background thread with quick response and low amount of data, and quickly know when there are new changes to apply. We could also keep a local database of all the categories and pictures, and update it by asking all the IDs that were modified since last change.

Let me know if you think it makes sens, or if there's already an efficient way to do this that I missed :) Thanks !

Hi everyone ! I have recently been developing my own Android application for Piwigo, since I wanted to add features a bit different from those present in the current app. I realized that in order to sync the changes between app and server, (e.g. to get recently added/deleted/moved photos), I need to call pwg.categories.getList and pwg.categories.getImages for all categories and all pictures all the time. I think it would be really useful if we had an option to request IDs of pictures and categories that have been modified since the last sync date. It could be an additional parameter 'f_min_date_modified' in methods pwg.categories.getList and pwg.categories.getImages ? This way we could call this methods regularly in a background thread with quick response and low amount of data, and quickly know when there are new changes to apply. We could also keep a local database of all the categories and pictures, and update it by asking all the IDs that were modified since last change. Let me know if you think it makes sens, or if there's already an efficient way to do this that I missed :) Thanks ! <!-- github-sync-id:1059434198 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1373