smugmug.albums.get

monoculesmonocules Registered Users Posts: 4 Beginner grinner
Is there a way to determine if an album is password protected using only a Nickname, without supplying a password in the API call. Using "heavy" without a password eliminates all the owner values. The remaining results seem insuffent to determine if the album can be accessed without a password.

Can I rely on smugmug.albums.getInfo returning an error code 4 if I make the call on a password protected album and don't supply a password? If so, for how long?

Much thanks

-Bill Fisher

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited May 16, 2009
    monocules wrote:
    Is there a way to determine if an album is password protected using only a Nickname, without supplying a password in the API call. Using "heavy" without a password eliminates all the owner values. The remaining results seem insuffent to determine if the album can be accessed without a password.

    Can I rely on smugmug.albums.getInfo returning an error code 4 if I make the call on a password protected album and don't supply a password? If so, for how long?

    Much thanks

    -Bill Fisher

    Bill,

    If you call smugmug.albums.get&NickName=xxxx&Heavy=1, you will see that there is a boolean Passworded that indicates that a gallery is Passworded. Alternately if you are using api 1.2.2, you can call smugmug.albums.get&NickName=xxxx&Extras=Passworded, this will return the standard response as well as the Passworded option for each gallery.

    If you call smugmug.albums.getInfo on an album that is password-protected without the password being provided you will receive an error...if you are making the call using a non-owner session (ie. if you are logged in as the owner of that gallery, you won't be prompted for the password).

    Does that make sense ?

    Let me know if you have any questions.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • monoculesmonocules Registered Users Posts: 4 Beginner grinner
    edited May 17, 2009
    Thanks David,

    Yes, makes sense. I was using version 1.2.0, Which doesn't have the password attribute. So it seems you and your API are (At least) one step ahead of me!

    Many Thanks.

    -Bill

    devbobo wrote:
    Bill,

    If you call smugmug.albums.get&NickName=xxxx&Heavy=1, you will see that there is a boolean Passworded that indicates that a gallery is Passworded. Alternately if you are using api 1.2.2, you can call smugmug.albums.get&NickName=xxxx&Extras=Passworded, this will return the standard response as well as the Passworded option for each gallery.

    If you call smugmug.albums.getInfo on an album that is password-protected without the password being provided you will receive an error...if you are making the call using a non-owner session (ie. if you are logged in as the owner of that gallery, you won't be prompted for the password).

    Does that make sense ?

    Let me know if you have any questions.

    Cheers,

    David
Sign In or Register to comment.