Using the API to login to password-protected gallery (question)

andreinlaandreinla 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

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 14, 2007
    G'day Andre,

    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
    David Parry
    SmugMug API Developer
    My Photos
  • jeff318jeff318 Registered Users Posts: 16 Big grins
    edited December 14, 2007
    I made a VERY basic PHP script that appends the entered "customer number" (really the category name) to the base URL.

    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.
    www.shoeboxsavior.com
    shoeboxsavior.smugmug.com
    digitizing your family's memories
  • andreinlaandreinla Registered Users Posts: 15 Big grins
    edited December 19, 2007
    API call for login into a gallery?
    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!



    devbobo wrote:
    G'day Andre,

    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
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 19, 2007
    andreinla wrote:
    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
    David Parry
    SmugMug API Developer
    My Photos
  • nickhonnernickhonner Registered Users Posts: 1 Beginner grinner
    edited December 19, 2008
    devbobo wrote:
    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?
Sign In or Register to comment.