Options

New API Suggestion

mchungmchung Registered Users Posts: 5 Beginner grinner
If you guys open to API suggestions...

I'd like a call that's similar to smugmug.images.getInfo, but takes an array of ImageIds, or even better, an AlbumId.

Currently, to fetch the info (say, the URL) for every image in an album, you have to issue N+2 calls (1 to get the album, 1 to get the list of images in the album, and then N calls for each image.

Alternatively, you could send back minor information with smugmug.images.get when Heavy=true

I'm using 1.1.1, btw.

-Marc

Comments

  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited August 23, 2007
    G'day Mark,

    If you set Heavy=1 on your smugmug.albums.get request, you will get the info you are looking for.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    mchungmchung Registered Users Posts: 5 Beginner grinner
    edited August 24, 2007
    Nice!!

    I don't know why I was using Heavy=true. I did Heavy=1 for smugmug.images.get and it returned what I wanted.

    -Marc
Sign In or Register to comment.