Options

1.2.0 smugmug.login.withHash doesn't return userID

rkallarkalla Registered Users Posts: 108 Major grins
This may be minor, but I noticed that withPassword returns a User struct with the user's ID in it, but withHash does not.

Should it? (I haven't gotten to the part of the API yet that makes use of the User's ID, so I don't know how valuable that value is for a logged in session... just thought the symmetry would be worth noting of the two methods)


Example return from withPassword (only diff withHash has, is no User struct):
{
    "stat":"ok",
    "method":"smugmug.login.withPassword",
    "Login":{
        "PasswordHash":"<PASSWORD HASH>",
        "AccountType":"<ACCOUNT TYPE>",
        "FileSizeLimit":<FILESIZE LIMIT, 12MB or 25MB in bytes>,
        "Session":{
            "id":"<SESSION ID>"
        },
        "User":{
            "id":<USER ID>
        }
    }
}

Comments

  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited September 5, 2007
    smugmug.login.withHash doesn't return the UserID as it's an input parameter to the call...hence assumes you know it.
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    rkallarkalla Registered Users Posts: 108 Major grins
    edited September 5, 2007
    *bonk*

    thanks David.
Sign In or Register to comment.