Skip to end of metadata
Go to start of metadata
Outdated
Please upgrade to the latest version.

smugmug.login.withHash

Establishes a session and logs a user in based on the specified user id and password hash.

Note: For security reasons, this method should only be sent over SSL.

Arguments

  • integer UserID
  • string PasswordHash
  • string APIKey

Result

  • struct Login
    • struct Session
      • string id
    • struct User
      • string NickName
      • string DisplayName
    • string AccountType
    • integer FileSizeLimit

Fault Codes

  • 1 - "invalid login"
  • 5 - "system error"
  • 11 - "ancient version"
  • 18 - "invalid API key"

Sample Requests

XML-RPC

Sample Responses

REST

JSON

PHP

XML-RPC

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. May 12, 2008

    Anonymous

    The password hasing algorithm that is used to generate the hash really should be documented.

  2. Nov 12, 2008

    Anonymous

    I cannot find any documentation on how to create the password hash, could you please add some documentation.

  3. Mar 15, 2009

    Anonymous

    What the heck is the password hashing algorithm?  How is someone supposed to generate the PasswordHash?

  4. Mar 15, 2009

    Anonymous

    Okay, I'm guessing that you get the hash from a prior call to smugmug.login.withPassword.