Telling if a site is password protected

pearsonartphotopearsonartphoto Registered Users Posts: 34 Big grins
So, I'm trying to find an easy way to tell if a site is password protected. So far the only way I can find is to call Smugmug.Albums.get and see if the response is:

{"message":"invalid user (missing SitePassword parameter)","method":"smugmug.albums.get","stat":"fail","code":4}

Ideally it would be nice to detect this from something like smugmug.users.getInfo or something like that. Is there some way I'm missing? Thanks guys!

Comments

  • DsweetDsweet Registered Users Posts: 81 Big grins
    edited August 29, 2010
    So, I'm trying to find an easy way to tell if a site is password protected. So far the only way I can find is to call Smugmug.Albums.get and see if the response is:

    {"message":"invalid user (missing SitePassword parameter)","method":"smugmug.albums.get","stat":"fail","code":4}

    Ideally it would be nice to detect this from something like smugmug.users.getInfo or something like that. Is there some way I'm missing? Thanks guys!

    smugmug.albums.get, heavy, Passworded boolean
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited August 29, 2010
    Using smugmug.users.getInfo, you can pass &Extras=Passworded.

    Hope this helps.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • pearsonartphotopearsonartphoto Registered Users Posts: 34 Big grins
    edited August 29, 2010
    That did the trick, would be nice to see it in the documentation... At least, if it is there, I completely missed it...
Sign In or Register to comment.