API request: Last updated/Created info.
Nikolai
Registered Users Posts: 19,035 Major grins
To be able to store some data locally (cache), I need to be able to find out whether this local data is outdated.
A relatively simple way to ensure this would be an API call which would tell us when was the last time that ANY change was made to the user's data (categories, subcategories, albums, images). This way local app would be able to determine quickly if there is a need to re-read the cahed data.
It would be also nice to return some kind of a time stamp along with the other data when retrieveing categories, subcategories and album info. I was thinking of two fields, actually - Created and LastUpdated. For category LastUpdated would be the time when any of the subcategories were created/removed,
For subcategory it will be unused. For albums - well, it's kinda obvious, it is even diaplsyed:-)
What do you think?
A relatively simple way to ensure this would be an API call which would tell us when was the last time that ANY change was made to the user's data (categories, subcategories, albums, images). This way local app would be able to determine quickly if there is a need to re-read the cahed data.
It would be also nice to return some kind of a time stamp along with the other data when retrieveing categories, subcategories and album info. I was thinking of two fields, actually - Created and LastUpdated. For category LastUpdated would be the time when any of the subcategories were created/removed,
For subcategory it will be unused. For albums - well, it's kinda obvious, it is even diaplsyed:-)
What do you think?
"May the f/stop be with you!"
0