YGOPRODeck icon indicating copy to clipboard operation
YGOPRODeck copied to clipboard

How do I know when a new card has been added and what information is on the new card?

Open lucasbsrs opened this issue 2 years ago • 2 comments

How do I know when a new card has been added and what information is on the new card?

The Check Database Version documentation says the following:

New card is added to the database. Card information is updated/modified on the main database.

But on that endpoint it doesn't say what the new cards are.

Does anyone have any suggestions on how to keep our local database always up to date?

lucasbsrs avatar Oct 12 '22 01:10 lucasbsrs

im saving all cards on a database and will check weekly if the API has more cards than saved in database, if has more on API i will recheck all by pinging the API again.

basic => cardsAPI.length > cardsDB.length = ping API and save new cards with a filter logic removing already existing cards.

joseehilton147 avatar Jan 03 '23 21:01 joseehilton147

How do you update cards that already exist?

For example, if a letter you have registered in the database has its name changed or its description changed or its ID changed.

How do you do this check?

lucasbsrs avatar Feb 19 '23 22:02 lucasbsrs