Options

xml-rpc and keywords

dominikdominik 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.

Comments

  • Options
    Aaron ChristyAaron Christy Registered Users Posts: 30 Big grins
    edited January 6, 2006
    Ditto
    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/
  • Options
    dominikdominik Registered Users Posts: 48 Big grins
    edited January 6, 2006
    aye :) i hope they extend the api

    do you know if they have plans for ajax support?
  • Options
    Aaron ChristyAaron Christy Registered Users Posts: 30 Big grins
    edited January 7, 2006
    dominik wrote:
    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/
  • Options
    mhilbushmhilbush Registered Users Posts: 70 Big grins
    edited October 14, 2006
    I'd like to register a vote in favor of a search API. I just entered a Smugbug enhancement request with the following description. I'd be happy to update the description if anyone has any additional thoughts on how this should work.

    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
    Mark
  • Options
    tjstankustjstankus Registered Users Posts: 1 Beginner grinner
    edited November 2, 2006
    +1 to API search.
Sign In or Register to comment.