smugmug.albums.get
monocules
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
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
0
Comments
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
SmugMug API Developer
My Photos
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