REST smugmug.albums.getInfo response

KyhiKyhi Registered Users Posts: 12 Big grins
A couple of questions about smugmug.albums.getInfo response for REST.

<rsp stat="ok">
<method>smugmug.albums.getInfo</method>
<Info>
<Album id="1">
<Album id="1"/>
<Highlight id="0"/>
...
</Album>
</Info>
</rsp>

1. Is <Info> necessary? It just adds another level to parse without any benefit, from what I can tell. To me, it looks like you can remove it without any problems.

2. Is <Album id="1"/> necessary? It seems redundant since this element has <Album id="1"> as the parent element and the parent has the exact same information. It also seems to imply that there is an album (id=1) within an album (id=1).

That's all for now, though I wish I had more time to play around with the API.

Bill
Sign In or Register to comment.