Added by David Parry, last edited by David Parry on Feb 11, 2008  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

smugmug.login.withPassword

Establishes a session and logs a user in based on the specified email address (or nickname) and password.

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

Arguments

  • string APIKey
  • string EmailAddress
  • string Password

Result

  • struct Login
    • struct Session
      • string id
    • struct User
      • integer id
      • string NickName
      • string DisplayName
    • string PasswordHash
    • 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

Code Samples

PHP using REST

PERL using JSON