API Updates: A few minor changes/bug fixes
devbobo
Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
Hey Guys,
We just released a few minor API changes..
- XML-RPC response for raw HTTP POST and XML PUT now return a slightly different (better) response...
- smugmug.images.changeSettings (1.2.0/1.2.1) was returning "system error" when toggling the Hidden parameter when the request was sent with other image parameters.
Cheers,
David
We just released a few minor API changes..
- XML-RPC response for raw HTTP POST and XML PUT now return a slightly different (better) response...
<?xml version="1.0" encoding="iso-8859-1"?> <methodResponse> <params> <param> <value> <struct> <member> <name>ImageID</name> <value> <int>id here </int> </value> </member> <member> <name>ImageKey</name> <value> <string>key here</string> </value> </member> </struct> </value> </param> </params> </methodResponse>- smugmug.images.get for API version 1.2.0 wasn't returning the Key parameter for each image on the non-heavy response.
- smugmug.images.changeSettings (1.2.0/1.2.1) was returning "system error" when toggling the Hidden parameter when the request was sent with other image parameters.
Cheers,
David
0
Comments
Thanks, David, nice fix!
Is this working for anyone? With a request like:
http://api.smugmug.com/hack/rest/?method=smugmug.images.get&APIKey=-apikey-&NickName=gmara&SessionID=-sessionid-&AlbumID=4437056&AlbumKey=FcCNN
I'm getting the following response, which doesn't include keys:
content: <?xml version="1.0" encoding="utf-8" ?><rsp stat="ok">
<method>smugmug.images.get</method>
<0>260728629</0><1>260728654</1><2>260728678</2><3>260728699</3>
...
Oddly enough, adding Heavy=1 returns exactly the same thing.
Am I doing something obviously wrong here?
wrong endpoint.
SmugMug API Developer
My Photos
Seems odd that albums.get does give it back, but albums.getInfo not.
I see now that the API docs have been corrected for albums.getInfo, this seems the other way around . Instead of adding the Category.Name and Subcategory.Name to the Api, the docs have been corrected.
See also: http://www.dgrin.com/showthread.php?t=86198