Unlisted gallery from API
infernoblitz
Registered Users Posts: 8 Beginner grinner
I would like to grab all my galleries, including unlisted ones through the API. Is there any easy way to do that?
0
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