I was actually trying to retrieve unlisted galleries through an anonymous session. I guess in the end this doesn't make sense, so I just setup the homepage not to show the galleries, but made them public. Thanks for the help!
smugmug.albums.get or smugmug.users.getTree will both do that was long as you don't have an anonymous session.
It's strange, I'm using smugmug.login.withPassword and I am definitely logging in successfully. However, my unlisted gallery still isn't showing up using smugmug.albums.get. All of my public galleries are there, just not the unlisted one. Is there something I'm missing?
Ah ha. I figured it out. This seems like a bug. It's not a problem if you do all of this unsecured. But of course that's not ideal when you're sending a password.
It's strange, I'm using smugmug.login.withPassword and I am definitely logging in successfully. However, my unlisted gallery still isn't showing up using smugmug.albums.get. All of my public galleries are there, just not the unlisted one. Is there something I'm missing?
Ah ha. I figured it out. This seems like a bug. It's not a problem if you do all of this unsecured. But of course that's not ideal when you're sending a password.
We recently implemented some changes to prevent sidejacking. If you want to make all api calls over https, your subsequent calls after login need to send the _su cookie (returned from login calls). The other alternative is to call the smugmug.login.* methods over https and the rest over http.
Comments
smugmug.albums.get or smugmug.users.getTree will both do that was long as you don't have an anonymous session.
SmugMug API Developer
My Photos
It's strange, I'm using smugmug.login.withPassword and I am definitely logging in successfully. However, my unlisted gallery still isn't showing up using smugmug.albums.get. All of my public galleries are there, just not the unlisted one. Is there something I'm missing?
By the way, I'm connecting to https://secure.smugmug.com/services/api/json/1.2.2/
EDIT...
Ah ha. I figured it out. This seems like a bug. It's not a problem if you do all of this unsecured. But of course that's not ideal when you're sending a password.
So now I'm calling smugmug.login.withPassword at https://secure.smugmug.com/services/api/json/1.2.2/ and everything else at http://api.smugmug.com/services/api/json/1.2.2/
We recently implemented some changes to prevent sidejacking. If you want to make all api calls over https, your subsequent calls after login need to send the _su cookie (returned from login calls). The other alternative is to call the smugmug.login.* methods over https and the rest over http.
Cheers,
David
SmugMug API Developer
My Photos