Options

Bug / inconsistency: smugmug.categories.get

avonwyssavonwyss Registered Users Posts: 12 Big grins
Whenever I do a smugmug.categories.get call via REST (API 1.1.0), I receive a response like this:
[PHP]<rsp stat="ok">
<method>smugmug.categories.get</method>
<Category id="0">
<Title>Other</Title>
</Category>
<Category id="41">
<Title>Airplanes</Title>
</Category>
...[/PHP]
But the docs state:
Result:
Array of structs:
int "CategoryID"
String "Title" :scratch

Funny enough, when I call smugmug.subcategories.getAll, I receive:
[PHP]<rsp stat="ok">
<method>smugmug.subcategories.getAll</method>
<SubCategory id="112540">
<CategoryID>1</CategoryID>
<SubCategoryID>112540</SubCategoryID>
<Title>Horses</Title>
</SubCategory>
...[/PHP]
Note the repeated SubCategoryID, which is what the docs say:
Result:
Array of structs:
int "CategoryID"
int "SubCategoryID"
String "Title"

Comments

  • Options
    luke_churchluke_church Registered Users Posts: 507 Major grins
    edited September 17, 2005
    Does not apply to XML-RPC 1.1.1
    This doesn't seem to apply to XML-RPC 1.1.1. The XML looks formed as one would expect from the documentation.

    I have not verified against 1.1.0, but it seems highly likely that it's OK, I think that my earlier testing would have caught the issue otherwise.

    Luke
Sign In or Register to comment.