How would I then go about doing daily or weekly updates while using as few requests as possible? Edits and new entries, both games and platforms?
What is a last_edit_id?
If the last_edit_id is based on time, what is the time query?
Does this include new additions or only edits? What about removals?
What about platform edits, additions and removals?
What about edits, additions, and removals for developers, genres, and publishers?
the time param is obsolete since that can return all the updates that happened since let say 5 days ago when you made the last update, but using last_edit_id should be more accurate.
these can be deduced from game edits,example if you encounter developer id in a game that doesnt match any in you cache, then you can poll for the new info, but no way to find if one was removed or edited as of now.What about edits, additions, and removals for developers, genres, and publishers?
for now you could expire your cache every month or so, as those are rather rare.
If I understand correctly, after my first update, I use the result's last_edit_id for the second update, etc. So the second update and on, that makes sense. But how do I do the first update? Let's say I download a cache of all games today looping through pages of Games/ByPlatformID. Then a week from now I want to run my first update. What do I put for last_edit_id?
https://api.thegamesdb.net/Games/Update ... &time=3000
It seems to have ignored the time parameter and started at the beginning.
Nevermind it seems to work fine if I don't put in a last_edit_id parameter (even though it says it's required).