API to Password Protected Gallery
genglish
Registered Users Posts: 1 Beginner grinner
Hello,
I am trying to find the correct API to execute to grant access to a password protected gallery or event, without prompting the user for the password.
I would like for my web application to execute the API call, passing in the gallery or event's password, then the user is redirected to the SmugMug site where they have access to the gallery/event.
This is needed so that the gallery/event cannot be shared by URL and our users have to go through our site in order to access the SmugMug gallery/event.
Thanks,
Garry
I am trying to find the correct API to execute to grant access to a password protected gallery or event, without prompting the user for the password.
I would like for my web application to execute the API call, passing in the gallery or event's password, then the user is redirected to the SmugMug site where they have access to the gallery/event.
This is needed so that the gallery/event cannot be shared by URL and our users have to go through our site in order to access the SmugMug gallery/event.
Thanks,
Garry
0
Comments
I've replied to the same question via email, but I'll also reply here for others that may stumble across this thread in the future.
- create a new anonymous session via a server-side request to smugmug.login.anonymously
- establish access to the password protected album via a server-side request to smugmug.albums.getInfo passing the Password
- redirect to smugmug.albums.browse passing the SessionID
Cheers,
David
SmugMug API Developer
My Photos