View Full Version : anybody used anonymous login successfully?
tomaszj
Aug-01-2005, 04:25 PM
My goal is to allow a visitor to access the public albums in an account, i.e. without knowing the password. The smugmug.login.anonymously method appears to have been intended for this scenario, and it returns a nice SessionID. But now how do I associate the anonymous SessionID with an account? Specifically, how do I use the smugmug.albums.get after an anonymous login?
Thanks much,
Tomasz.
devbobo
Aug-01-2005, 11:12 PM
My goal is to allow a visitor to access the public albums in an account, i.e. without knowing the password. The smugmug.login.anonymously method appears to have been intended for this scenario, and it returns a nice SessionID. But now how do I associate the anonymous SessionID with an account? Specifically, how do I use the smugmug.albums.get after an anonymous login?
Thanks much,
Tomasz.
Tomasz,
After an anonymous login, you need to pass the nickname parameter with the smugmug.albums.get function so that the API knows what user gallery you are referring to.
I haven't used this function with anonymous login, but it works fine if I want to get another users' images after I have logged in.
Hope this helps,
David
tomaszj
Aug-02-2005, 09:28 AM
Yes, DevBobo, this does the trick.
tomasz
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.