thumb url for an album

rolandk98rolandk98 Registered Users Posts: 7 Beginner grinner
Hello, is there a way to obtain the thumb url for an album without having to do multiple api calls.
albums.get does not return a thumb url for the cover photo of an album, and i understand, smugmug does not have a fixed cover album, but it would be nice if albums.get would return any thumb url so that when you are listing the albums, you can show a cover photo without doing 1 albums.get and N images.get.

anyway I am new to the smugmug API and i was wondering if i missed it somewhere, and did not see it?
thx
roland

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 6, 2008
    G'day Roland,

    You can grab a random image like this...

    http://nickname.smugmug.com/photos/random.mg?AlbumID=[Insert AlbumID]&Size=[Tiny|Thumb|Small|Medium|Large|...]

    Additionally, you don't need to do N calls to get all the image details for images of an album, by adding &Heavy=1 to smugmug.images.get, all that info is automatically returned.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • rolandk98rolandk98 Registered Users Posts: 7 Beginner grinner
    edited February 7, 2008
    Great. thx, a new web application using smugmug api coming soon
    regards
    Roland
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 8, 2008
    Make sure you check out the security changes from last night as this is going to affect you thumb.gif
    David Parry
    SmugMug API Developer
    My Photos
  • darryldarryl Registered Users Posts: 997 Major grins
    edited February 8, 2008
    SmugMug does have a "fixed cover album" as Roland describes it:

    http://www.smugmug.com/help/photo-website

    But Random Image != Featured Image.

    Is there any way to extract which image is Featured in an Album? I don't see a "Featured" bit in what a query to smugmug.images.get or getInfo would return, so is this not possible? Is it somewhere in albums.getInfo? What's Hightlight?
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 8, 2008
    darryl wrote:
    SmugMug does have a "fixed cover album" as Roland describes it:

    http://www.smugmug.com/help/photo-website

    But Random Image != Featured Image.

    Is there any way to extract which image is Featured in an Album? I don't see a "Featured" bit in what a query to smugmug.images.get or getInfo would return, so is this not possible? Is it somewhere in albums.getInfo? What's Hightlight?

    Highlight== Featured thumb.gif

    And before you say it, yes the documentation needs an overhaul
    David Parry
    SmugMug API Developer
    My Photos
  • darryldarryl Registered Users Posts: 997 Major grins
    edited February 8, 2008
    So it's Highlight, not Hightlight? C'mon dude -- that's a 5-second edit in Confluence. :-}
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 8, 2008
    darryl wrote:
    So it's Highlight, not Hightlight? C'mon dude -- that's a 5-second edit in Confluence. :-}

    heh, sorry I saw your typo and assumed it was your mistake lol3.giflol3.gif

    gimme a break, it's Saturday here and i have had no coffee :D
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.