List of albums along with featured thumbnail

albinalbin Registered Users Posts: 2 Beginner grinner
Hi.

I'm completely new to the SmugMug API. Please excuse me if there's something obvious I overlooked.

I'm trying to fetch a list of all my albums along with their category and an url to the thumbnail of the featured image in the album. I'm using the phpSmug wrapper if it makes a difference.

smugmug.albums.get (with heavy) seems to do the trick - almost. It returns the list of albums, categories along with highlight (which seems to mean featured). Only problem is it only return the ImageKey and not the ImageId of the featured image. The ImageId is required along with ImageKey for smugmug.images.getURLs.

Is there a simple way to get the ImageId corresponding to an ImageKey? Or, is it possible to get the thumb-url from just the ImageKey?

Any help apreciated!
Albin Holmgren

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 17, 2010
    G'day Albin,

    Which version of phpSmug are you currently using ? And which api version ?

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 17, 2010
    You want to make sure that you are using API version 1.2.2.
    David Parry
    SmugMug API Developer
    My Photos
  • albinalbin Registered Users Posts: 2 Beginner grinner
    edited January 22, 2010
    Thanks, David. By changing the Api version from 1.2.0 to 1.2.2 in the phpSmug source I got it working.

    Albin
Sign In or Register to comment.