Unlisted gallery from API

infernoblitzinfernoblitz 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?

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 14, 2010
    I would like to grab all my galleries, including unlisted ones through the API. Is there any easy way to do that?
    t

    smugmug.albums.get or smugmug.users.getTree will both do that was long as you don't have an anonymous session.
    David Parry
    SmugMug API Developer
    My Photos
  • BeachBillBeachBill Registered Users Posts: 1,311 Major grins
    edited February 14, 2010
    And if you just want a list of your galleries, you could use http://smugroom.com/tools/gallery-list/
    Bill Gerrard Photography - Facebook - Interview - SmugRoom: Useful Tools for SmugMug
  • infernoblitzinfernoblitz Registered Users Posts: 8 Beginner grinner
    edited February 14, 2010
    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!
  • SWorthamSWortham Registered Users Posts: 1 Beginner grinner
    edited December 8, 2010
    devbobo wrote: »
    t

    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?

    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/
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 8, 2010
    SWortham wrote: »
    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
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.