Can I do this with API
farbodr
Registered Users Posts: 7 Beginner grinner
I want to create a private website for my own use where users can see on a calendar the days with photos associated with that day. Then they would click on that day and will be presented with a thumbnail of photos. I have done this with Flickr api but I don't like the fact that with Flickr users have to be authenticated via a popup. I want to be able to log into my account behind the scene. It looks like I can do this with SmugMug API. Flickr has a search method that takes a 'date taken' param. Does SmugMug api have similar method?
TIA,
Fred
TIA,
Fred
0
Comments
Fred, you can't do exactly this using the SM API from what I remember, but you do have access to the EXIF data to check the date taken... then again, requesting *all* the images then filitering them yourself before showing them to the user on the calendar is too time consuming to do on the fly, maybe you have a background process that does it and refreshes a cache of a list of photos with those date?
I think this is a really cool use-case to justify getting this support directly into SmugMug though, thanks for sharing it.
kallasoft | The "Break It Down" Blog
I think I will try the cache idea. I may create a yet another uploader that creates the cache entry during the upoad.
Fred
I requested a search method a VERY long time ago. I just updated the request to include a date or date range criteria, as you suggested in your post.
Here's a link to the enhancement request:
http://smugmug.jot.com/BugReporter/SmugBug11
Mark
You could hack it with some scraping. Go to your Control Panel -> Home Page and set your Photo Timeline to Show by: date taken.
Then go to a URL like: http://darryl.smugmug.com/date/2007-11-09/2007-11-09/
Select All Thumbs style.
Start scrapin' <div class="photo"> like crazy. :-}
Heh. This is how my first Perl album downloading script worked.
Bummer that the Template Change Hack doesn't work anymore. But since you're programming it, I think you could just do another get of the page with TemplateID=7 and origin=template_origin. Or pre-set a .smugmug.com Template cookie with the value of 7.
--Darryl