View Full Version : Using the API to login to password-protected gallery (question)
andreinla
Dec-14-2007, 04:31 PM
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
devbobo
Dec-14-2007, 05:54 PM
G'day Andre,
I don't think that such a script exists, but it should be pretty easy to write.
API documentation is here (http://smugmug.jot.com/WikiHome/1.2.0).
Let me know if you have any questions.
Cheers,
David
jeff318
Dec-14-2007, 08:09 PM
I made a VERY basic PHP script that appends the entered "customer number" (really the category name) to the base URL.
shoeboxsavior.smugmug.com (http://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.
andreinla
Dec-19-2007, 02:36 PM
David,
I looked at the API docs but the login with hash/password methods require a username (http://smugmug.jot.com/WikiHome/1.2.0/smugmug.login.withPassword)/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!
G'day Andre,
I don't think that such a script exists, but it should be pretty easy to write.
API documentation is here (http://smugmug.jot.com/WikiHome/1.2.0).
Let me know if you have any questions.
Cheers,
David
devbobo
Dec-19-2007, 02:57 PM
David,
I looked at the API docs but the login with hash/password methods require a username (http://smugmug.jot.com/WikiHome/1.2.0/smugmug.login.withPassword)/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
nickhonner
Dec-19-2008, 05:38 PM
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
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?
vBulletin v3.5.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.