smugmug.images.changeSettings fails to hide picture
CameraRenter
Registered Users Posts: 12 Big grins
In my application I am able to update a photo's caption and Key words using smugmug.images.changeSettings, but for some reason I cannot hide a picture. This is the specific request that fails to hide photos:
"https://api.smugmug.com/services/api/rest/1.2.1?method=smugmug.images.changeSettings&APIKey=XXXXXXXXX&Keywords=New_Key_WordCaption=New_Caption&Hidden=True&ImageID=515402073&SessionID=XXXXXXXXXXXXXX"
Am I missing something? Any help would be much appreciated.
"https://api.smugmug.com/services/api/rest/1.2.1?method=smugmug.images.changeSettings&APIKey=XXXXXXXXX&Keywords=New_Key_WordCaption=New_Caption&Hidden=True&ImageID=515402073&SessionID=XXXXXXXXXXXXXX"
Am I missing something? Any help would be much appreciated.
0
Comments
from 1.2.2+, boolean values can be 1, true or 0, false....but not True or False.
Hope this helps,
David
SmugMug API Developer
My Photos
I was still having the same issue even with the 1.2.2 version of the api, but I found what the problem was. You must send the image Key or else hiding photos silently fails. Sending the photo Id is not enough.
I am also having hide issues via the smugmug.images.changeSettings method of the 1.2.2 API.
I'm sending the image key and a 1 for true, but I get inconsistent results. Sometimes the photo's hidden property is set, but the majority of the time it is not.
Thanks for any help.