Highlight Image from Password Protected Album

infernoblitzinfernoblitz Registered Users Posts: 8 Beginner grinner
I am trying to build an app so users can browse their photo galleries on the phone. However, I have an issue grabbing the highlight image from a password protected album.

I'd like to make a call to smumug.albums.get and instead of the Highlight response being an image ID/key, get a valid URL for the image. Otherwise, I need to force the user to enter a password to an album before seeing the highlight image, which somewhat defeats the purpose of the highlight image. It seems like this would also maintain consistency with the smugmug site where the highlight image is always viewable without entering the album password.

If there is a workaround, any help would be appreciated. Thanks!

I'm using API 1.2.2 right now.

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 30, 2010
    Hey,

    See my response here, it should be possible to return a url as well...I just need to add a mechanism to request a certain size.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 30, 2010
    Otherwise, if you want a more immediate solution...you could try using this url...

    http://photos.smugmug.com/photos/random.mg?AlbumID=[AlbumID]&Size=[Tiny|Thumb|Small|etc]&AlbumKey=[AlbumKey]
    David Parry
    SmugMug API Developer
    My Photos
  • infernoblitzinfernoblitz Registered Users Posts: 8 Beginner grinner
    edited January 31, 2010
    Thanks! that worked. I hope more direct features make it into the next API version.
    devbobo wrote:
    Otherwise, if you want a more immediate solution...you could try using this url...

    http://photos.smugmug.com/photos/random.mg?AlbumID=[AlbumID]&Size=[Tiny|Thumb|Small|etc]&AlbumKey=[AlbumKey]
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited February 2, 2010
    devbobo wrote:
    Otherwise, if you want a more immediate solution...you could try using this url...

    http://photos.smugmug.com/photos/random.mg?AlbumID=[AlbumID]&Size=[Tiny|Thumb|Small|etc]&AlbumKey=[AlbumKey]
    And to add something that may be of use to you, you can specify a dimension on the &Size= parameter. For example, I use &Size=166x1000 to specify a certain width of an image for my random gallery module on my site.
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • blackgold9blackgold9 Registered Users Posts: 52 Big grins
    edited December 3, 2010
    devbobo wrote: »
    Otherwise, if you want a more immediate solution...you could try using this url...

    http://photos.smugmug.com/photos/random.mg?AlbumID=[AlbumID]&Size=[Tiny|Thumb|Small|etc]&AlbumKey=[AlbumKey]


    This would be a perfect solution for my app, but it just returns an "Emtpy Gallery" image when used on a password protected gallery.
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited December 3, 2010
    See if external linking is enabled on that gallery. I don't know why it should make a difference, but it might. ne_nau.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
Sign In or Register to comment.