Category Name not present in albums.getInfo
espaan
Registered Users Posts: 10 Big grins
Hi,
New to the forum. Started using the API and phpSmug for development of a PostNuke smugmug module.
i'm using hte 1.2.0 API and wanted to display the Category Name alongside albums in an application. However when using albums.getInfo the structure Category doesn't contain the Name field only the id.
Is this correct or am I doing something wrong?
New to the forum. Started using the API and phpSmug for development of a PostNuke smugmug module.
i'm using hte 1.2.0 API and wanted to display the Category Name alongside albums in an application. However when using albums.getInfo the structure Category doesn't contain the Name field only the id.
Is this correct or am I doing something wrong?
0
Comments
Alternatively, if you use smugmug.albums.get with the Heavy flag, you will get the cat & subcat name for each album.
This does point out a small inconsistency between albums.get and albums.getInfo. Any thoughts, devbobo?
Mark
That's a misser i guess. I don't want to use the heavy option and an extra call to categories.get seems a little redundant.
The manual on the getinfo api call actually says that the Category Name is returned . That's why I thought I was doing something wrong.