Filtering and sorting in the API
jrdavis
Registered Users Posts: 3 Beginner grinner
Is there a way to filter and sort the results of the SmugMug APIs? Specifically, I'd like to be able to call smugmug.albums.get but just get the six most recently updated albums.
Right now all I see is a "LastUpdated" field that limits the number of albums by date range rather than raw number, and I can't see any way for the web service to sort the results. This is forcing me to download more data than I want to the client and then sort the results there.
Thanks for any help / ideas.
Right now all I see is a "LastUpdated" field that limits the number of albums by date range rather than raw number, and I can't see any way for the web service to sort the results. This is forcing me to download more data than I want to the client and then sort the results there.
Thanks for any help / ideas.
0
Comments
I'd like to bump this article for reference. It's nice to be able to get album returns on the albums_get method but it seems to just randomly sort the albums in no particular order -- I was hoping, as well, that it would maybe default to most recent albums first and go backwards from there.
Any help on this would be appreciated, as I don't want to source this out to a database either.
You can learn more about API 2.0.0 in general by checking out our documentation and get access to it by accepting our terms of service on this page. We're happy to help answer any questions about API 2.0.0 and getting started using it.
SmugMug Product Manager