Options

1.2.0 categories.get argument naming inconsistent

rkallarkalla Registered Users Posts: 108 Major grins
Throughout the API (in the users and albums sets of functions) the naming convention has been:

Album has a Title
Category has a Name

but in categories.get method, it returns a construct of Category with a Title, more specifically:
{ 
    "stat" : "ok",
    "method" : "smugmug.categories.get",
    "Categories" : [ { 
        "id" : <CATEGORY ID>,
        "Title" : "<CATEGORY TITLE>"
    } ]
}

I guess to stay consistent with the other parts of the API, that "Title" should be "Name"?

Comments

  • Options
    rkallarkalla Registered Users Posts: 108 Major grins
    edited October 2, 2007
    NOTE: Just noticed in the subcategories methods the term "Title" is used as well instead of "Name".
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited October 2, 2007
    This issue has been around for a while, and while I do want to fix it, I will probably do so only in 1.2.1 as I don't want to break existing applications.
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    rkallarkalla Registered Users Posts: 108 Major grins
    edited October 2, 2007
    Good point.

    I'll leave my comments regarding this and other OCD-related things for 1.2.1 :D
Sign In or Register to comment.