smugmug.albums.get - enhanced filtering
ebswift
Registered Users Posts: 94 Big grins
I see that smugmug.albums.get has a lastupdated filter which is great, so can I now suggest that we get filtering on ALL attributes? Here's an example looking for albums that can be viewed externally, aren't passworded and contain images:
http://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.albums.get&NickName=ebswift&APIKey=myapikey&SessionID=mysession&Passworded=0&External=1&HasImages=1
Incidentally, that filter would also filter out entire categories (by virtue of being a list of albums) that have nothing public to show.
If all attributes had filtering available, this could extend to keyword searching, title searching and all kinds of other goodies that would have all kinds of uses without performing initial caching into a searchable form.
http://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.albums.get&NickName=ebswift&APIKey=myapikey&SessionID=mysession&Passworded=0&External=1&HasImages=1
Incidentally, that filter would also filter out entire categories (by virtue of being a list of albums) that have nothing public to show.
If all attributes had filtering available, this could extend to keyword searching, title searching and all kinds of other goodies that would have all kinds of uses without performing initial caching into a searchable form.
Try Smugfoto in Facebook for displaying your SmugMug galleries.
0
Comments
On the method smugmug.users.getTree (version 1.2.2), there is a hidden boolean parameter 'Empty' which filters out empty categories/subcategories when set to false.
It should be pretty straightforward to implement this for albums, but I need to make sure it scales ok performance-wise for accounts with a lot of galleries.
Cheers,
David
SmugMug API Developer
My Photos
Try Smugfoto in Facebook for displaying your SmugMug galleries.
I'm trying to pull all the album names/keys for a particular category. This will be fed into the random image generator each time a visitor comes to my web site, so I can pull a random image/video from a gallery and display it.
I know there's going to have to be some 'glue' code to go between everything, but the part that I'm most interested in here is what you guys are talking about it pulling album names. I know at one point someone wrote a program that would pull the gallery names so you could link to the images from a regular html page, but I can't seem to find that.
Any assistance appreciated.
Want faster uploading? Vote for FTP!
http://wiki.smugmug.net/display/SmugMug/Random+Photos+Code
Try Smugfoto in Facebook for displaying your SmugMug galleries.
Want faster uploading? Vote for FTP!