ActionGaz

Finding changes in the database

Recommended Posts

I've been trying to work out an easy way to determine additions (and changes) to the sets list using the V3 API. I'd prefer an approach that did not require downloading the entire list again.

The entries have a field called 'last_modified_dt' which looks like it could be used for this purpose.

Is it possible to search based on that now or could this be added to the API in the future? What I think I would like would be able to have a set search where I get the sets with a modification date after a timestamp in my request.

Thanks

Share this post


Link to post
Share on other sites

To clarify - you're talking about the general catalog of sets and not the sets owned by a specific user? There's no search filter on that data at the moment.

When do you consider a set as modified - eg name/year/theme change, new set added, set's inventory changed, etc?

What are you trying to do with this info?

Share this post


Link to post
Share on other sites

Yes, in this case it is the general catalog of sets. I'm writing an iOS app that allows the user to keep track of their collection. I know this duplicates the functionality of other sites and apps, but I am writing this as an exercise as it ends up covering a lot of iOS development I want to practice.

I was planning to seed the app with a database containing information from Rebrickable so the entire data does not need to be downloaded on first use. To limit the number of requests to Rebrickable and to restrict bandwidth to the minimum, I would like to be able to do an occasional search that will return the items in the local database are out of date and the new sets in the Rebrickable database (based on when the local database was last updated).

The alternative is to download the sets csv file and work out what is new (and deleted) based on that without knowing if any information has been modified on existing sets.

I hope that adds clarity to my request.

Share this post


Link to post
Share on other sites

The V2-Api has the function get_changes (see here for doc of API v2 ).

I used this some time ago; now I'm migrating my private app (WPF based; should work offline with own database) for my inventory to V3 and I will also come across this soon. With a function like the old get_changes in API V3 ActionGaz' request would work
So I would like to see such kind of function also in V3.

Regards

Dietmar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now