[RESOLVED] Documentation Ommision: smugmug.subcategories.get
luke_church
Registered Users Posts: 507 Major grins
Mod Edit: SmugWiki documentation updated
Percieved Priority: Low
Issue: Documentation doesn't state response to there being no subcategories.
http://www.smugmug.com/hack/method-smugmug.subcategories.get
Given what the documentation states about get albums, that if there aren't any an empty array will be returned, http://www.smugmug.com/hack/method-smugmug.albums.get:
However, XML-RPC 1.1.0 returns fault code 15, empty set:
[php]
smugmug.subcategories.get
...
0
Header
faultCode
15
faultString
empty set - no subcategories found
[/php]
Percieved Priority: Low
Issue: Documentation doesn't state response to there being no subcategories.
http://www.smugmug.com/hack/method-smugmug.subcategories.get
Given what the documentation states about get albums, that if there aren't any an empty array will be returned, http://www.smugmug.com/hack/method-smugmug.albums.get:
The same behaviour might be assumed for subcategories.Array of structs: [empty arrary if no albums]
However, XML-RPC 1.1.0 returns fault code 15, empty set:
[php]
smugmug.subcategories.get
...
0
Header
faultCode
15
faultString
empty set - no subcategories found
[/php]
0