Options

API Updates: A few minor changes/bug fixes

devbobodevbobo 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...
<?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
David Parry
SmugMug API Developer
My Photos

Comments

  • Options
    NikolaiNikolai Registered Users Posts: 19,035 Major grins
    edited February 13, 2008
    devbobo wrote:
    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.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

    Thanks, David, nice fix!thumb.gif
    "May the f/stop be with you!"
  • Options
    timpicstimpics Registered Users Posts: 7 Beginner grinner
    edited March 2, 2008
    Still broken?
    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?
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 3, 2008
    timpics wrote:
    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.
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    espaanespaan Registered Users Posts: 10 Big grins
    edited March 11, 2008
    Is it possible to change also albums.getInfo? The structure Category doesn't contain the Name field only the id. Whereas albums.get (Heavy) does contain the Category.Name and also the Subcategory Name (according to the docs). If one uses albums.getInfo an extra call to categories.get has to be done to get the Name.

    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 mwink.gif. 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
Sign In or Register to comment.