Using the API to login to password-protected gallery (question)
andreinla
Registered Users Posts: 15 Big grins
Hi, all.
I will be writing a php script allowing my customers to log in from website diurectly into their smugmug password-protected gallery and review/download their images.
Has anybody attempted such a thing? Does such a script already exist? I searched the forum but couldn't find anything relevant.
Also, could you point me to the best place to start with the API given this kind of application?
Thank you!
-- Andre
-- UpstagePhoto.com
I will be writing a php script allowing my customers to log in from website diurectly into their smugmug password-protected gallery and review/download their images.
Has anybody attempted such a thing? Does such a script already exist? I searched the forum but couldn't find anything relevant.
Also, could you point me to the best place to start with the API given this kind of application?
Thank you!
-- Andre
-- UpstagePhoto.com
0
Comments
I don't think that such a script exists, but it should be pretty easy to write.
API documentation is here.
Let me know if you have any questions.
Cheers,
David
SmugMug API Developer
My Photos
shoeboxsavior.smugmug.com
Entering the customer number 12345 would send the user to http://shoeboxsavior.smugmug.com/12345 where he or she would see the list of galleries and be prompted to enter a password. It's very basic, but it seems to work fine so far.
I'd be interested to see what you develop, because it would be very useful for me too.
shoeboxsavior.smugmug.com
digitizing your family's memories
David,
I looked at the API docs but the login with hash/password methods require a username/email address.
What I am looking for is login to a specific protected gallery, where there's only a password required and no need for a username.
Is there an API call for that entry point?
I'd like to let users select a photoshoot on my website and enter a password on my website and then, if the password matches, to log them in to their protected preview gallery automatically.
Thank you!
You can trying the following...
- call smugmug.login.anonymously (to get a SessionID)
- then call smugmug.albums.getInfo (on a specific gallery, if it's password protected, you need to provide the Password=xxxx).
I hope that helps.
Cheers,
David
SmugMug API Developer
My Photos
This is helpful but I have a slightly different case. I have a website where I want my members to be able to link to my password-protected smugmug site (as anonymous users) without having to enter a password. Is there a way to do that with the APIs, or is there any other way to do this?