Setting password using 1.3 API (new SmugMug) broken
nzsnapper
Registered Users Posts: 34 Big grins
There appears to be an issue creating a password protected gallery on the new SmugMug with the 1.3 API. The gallery is created successfully but the password does not work and has to be set manually on the website. The request works correctly on a site in the old SmugMug mode - the password is set correctly and works as expected. The same code and request sequence does not set the password correctly on the new SmugMug.
This is some debug output showing the URL used to create the gallery and the JSON response returned indicating success.
Request:
<OAMutableURLRequest: 0x608000898600> { URL: http://api.smugmug.com/services/api/json/1.3.0/?method=smugmug.albums.create&Password=pass123&ThemeID=0&Public=false&Title=Test4&CategoryID=174186665&SquareThumbs=true }
Response:
{
Album = {
Key = gMNPFr;
id = 44310593;
};
method = "smugmug.albums.create";
stat = ok;
}
A fix would be nice or a workaround if there is one.
An example (non-working) gallery is at:
http://rclportfolio.smugmug.com/Testing-1/Test5/n-GJmzj
The password should be pass123.
Thanks
Richard Laing
This is some debug output showing the URL used to create the gallery and the JSON response returned indicating success.
Request:
<OAMutableURLRequest: 0x608000898600> { URL: http://api.smugmug.com/services/api/json/1.3.0/?method=smugmug.albums.create&Password=pass123&ThemeID=0&Public=false&Title=Test4&CategoryID=174186665&SquareThumbs=true }
Response:
{
Album = {
Key = gMNPFr;
id = 44310593;
};
method = "smugmug.albums.create";
stat = ok;
}
A fix would be nice or a workaround if there is one.
An example (non-working) gallery is at:
http://rclportfolio.smugmug.com/Testing-1/Test5/n-GJmzj
The password should be pass123.
Thanks
Richard Laing
0
Comments
Just to clarify something in your case, did you go in and manually set a password for that example gallery that you linked to? When I try to access it I see that it does have a password, but pass123 isn't working for me.
SmugMug Product Manager
I have not edited the gallery password, this is an example of the password being broken when the gallery was created.
Thanks
Richard
SmugMug Product Manager
I would certainly be interested in giving the new API a go, I am currently trying to work out where to go with my iPhoto and Aperture plugins both applications are being discontinued unfortunately. I am considering doing something for Photos when it released and that would be an opportunity to update my SmugMug integration at the same time.
Thanks
Richard
The users of these applications are paying Smugmug customers, so it seems reasonable to fix this API. Your newer API, whenever it's fully supported, is a complete change from the old API, so it will be a long time (if ever) before applications are updated.
SmugMug Product Manager