Tell me more ×
SmugMug Stack Exchange is a question and answer site for SmugMug developers and end users. It's 100% free, no registration required.

I'm trying to get the images list for a gallery, calling smugmug.images.get. I'm not using OAuth, I'm including SessionID in the GET call.

I'm getting a response:

{
    code = 4;
    message = "invalid user (SitePassword)";
    method = "smugmug.images.get";
    stat = fail;
}

This occurs when a site password is set.

How do I need to authenticate this call? Thanks.

share|improve this question

1 Answer

It sounds like you're missing the su or su (not sure which spelling is the correct one) cookie that's referenced in this thread

The su_ cookie is recent addition to assist in the prevention of sidejacking attacks. It is returned from smugmug.login.withPassword or smugmug.login.withHash requests.

After logging in, if you want subsequent calls over https this cookie needs to be present....otherwise the request will be treated as an anonymous request.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.