Category Name not present in albums.getInfo

espaanespaan 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?

Comments

  • mhilbushmhilbush Registered Users Posts: 70 Big grins
    edited March 1, 2008
    You are right. The category name is not in the response. You need to use smugmug.categories.get to retrieve the cat names.

    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
    Mark
  • espaanespaan Registered Users Posts: 10 Big grins
    edited March 1, 2008
    Thanks for the response.
    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 mwink.gif . That's why I thought I was doing something wrong.
  • espaanespaan Registered Users Posts: 10 Big grins
    edited March 3, 2008
    Could it be added to the current API?
Sign In or Register to comment.