smugmug.images.changeSettings fails to hide picture

CameraRenterCameraRenter 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.

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited April 19, 2009
    prior to version 1.2.2, boolean values needed to be set to 1 or 0.

    from 1.2.2+, boolean values can be 1, true or 0, false....but not True or False.

    Hope this helps,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • CameraRenterCameraRenter Registered Users Posts: 12 Big grins
    edited April 20, 2009
    devbobo wrote:
    prior to version 1.2.2, boolean values needed to be set to 1 or 0.

    from 1.2.2+, boolean values can be 1, true or 0, false....but not True or False.

    Hope this helps,

    David


    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.
  • vlb804svlb804s Registered Users Posts: 6 Beginner grinner
    edited May 5, 2009
    Inconsistent hide issues
    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.
  • vlb804svlb804s Registered Users Posts: 6 Beginner grinner
    edited May 15, 2009
    Any ideas as to why this is happening (see previous post from me)?
Sign In or Register to comment.