xml-rpc and keywords
dominik
Registered Users Posts: 48 Big grins
Is there a way to do a keyword search via xml-rpc?
E.g. I'd like search for a keyword and get back all info for all the images that match that keyword.
E.g. I'd like search for a keyword and get back all info for all the images that match that keyword.
0
Comments
I have the exact same need and asked the exact same question a few weeks ago (see: http://www.dgrin.com/showthread.php?t=24555
Since I couldn't find a way to use the API to do a keyword search across albums, I started using the RSS feed, consuming it, and creating a custom collection class to hold all the image objects (including pointers to moveNext/movePrevious).
Then, I hit the limitation ... only 100 images are returned with the RSS feed.
So, I was trying to find a way around this issue. The easiest thing was to try to ask for additional images to be sent in the RSS feed, but in all honesty 100 is pretty generous. RSS, in my opinion, is supposed to be timely and chances are that if anyone actually subscribes to my RSS feed, they don't care about all of those images.
Unfortunately, I was using it as an easy hack to get an XML based list of images matching a specific keyword.
I am hoping this type of XML-RPC or REST call could be something they could add!
Aaron
Aaron Christy
http://www.surfacedamage.com/
do you know if they have plans for ajax support?
I know zilch about the inner-thinking of smugmug, so I don't really know what the plans are for API enhancements.
However, since AJAX is simply an xml-http transport mechanism (I hesitate to say "framework"), I don't know if a company truly creates "ajax support" as much as they would expose web services for their API.
So, I suppose depending on how you define a "web service", I would think you could leverage the Smugmug REST API since it would be fairly easy to make a REST call using AJAX and handling the XML response accordingly.
I have not done an AJAX-REST solution before, but I can't think of anything that would prevent it from working.
Good luck!
Aaron Christy
http://www.surfacedamage.com/
An image search API should be created, which would allow searching by filename, keyword(s), EXIF data, etc. The API would return an array of image ID(s) that match the search criteria. Other items returned should include image URL's and album URL. The search criteria should include the "scope" of the seach (e.g. all of Smugmug, just the user's site, a specific album, etc.). All normal security (private galleries, etc.) would be enforced.
In my case, I would use this API to better integrate the image management tool I use (IMatch) with Smugmug. This API would allow me to select an image(s) in IMatch, then find all occurences of that image on Smugmug.
Mark