Welcome, guest ( Login )

Powered by JotSpot

WikiHome » 1.2.0 » smugmug.users.getTree

smugmug.users.getTree

Version 3, changed by devbobo@gmail.com. 05/10/2007.   Show version history

API Method: smugmug.users.getTree

This method returns a complete tree, starting with Categories and descending into SubCategories (if any) and Albums (if any) for the specified user (identified by SessionID or (optional) NickName).

Arguments:
  • String SessionID
  • String NickName optional
  • Boolean Heavy optional
  • String SitePassword optional

Result:
  • Array of structs (Categories):
    • int "CategoryID"
    • String Title
      • Array of structs: (SubCategories, if present)
        • SubCategoryID
        • Title
          • Array of structs: (Albums, if present)
            • struct: (Album Info, if Heavy is true)
      • Array of structs: (Albums, if present, and no SubCat)
        • struct: (Album Info, if Heavy is true)

Fault Codes:
  • 4 - "invalid user (message)"
  • 5 - "system error"

Comments (1)

rkalla@gmail.com said, 08/23/2007:

NOTE: At the moment an invalid session ID or NickName? will currently return Error Code 18 ("invalid API key").

Attachments (0)

  File By Size Attached Ver.