[RESOLVED] Getting albums in category
nickarls
Registered Users Posts: 1 Beginner grinner
Is there some way of getting all the albums in a category without iterating through all the albums using the REST API and checking the category?
0
Comments
Hi Nick,
You could use smugmug.users.getTree, which returns the full list of categories and associated subcategories and albums.
I am going to raise an enhancement request to include an optional category parameter to return only a partial branch of the tree.
Until then, perhaps getting the whole tree will suffice.
Cheers,
David
SmugMug API Developer
My Photos
Mod Edit: Logged as SmugBug
[ErrorMsg] => server error. method not found.
smugmug.users.getTree
sorry it's a beta method, make sure u use version 1.1.1
SmugMug API Developer
My Photos
Tazzy,
Passing the version like that is depreciated now with latest release.
You should be using this endpoint instead...
http/api.smugmug.com/hack/xmlrpc/1.1.1/
so versions will now be denoted by the url, not a parameter being passed with login.
more info here
Please note, that I haven't had a chance to test the new release of the API with xml-rpc.
Cheers,
David
SmugMug API Developer
My Photos
I am.. Still no go..
$smugmug_client = new xmlrpc_client("/hack/xmlrpc/1.1.1/", "api.smugmug.com", "443");
....Wishing I could get this to work...
-Mitch
Hi Tazzy,
I started building my API test harness last night, I have confirmed your problem. It has been logged as a SmugBug, so hopefully it will get looked at soonish.
Cheers,
David
SmugMug API Developer
My Photos
http://www.chrislaudermilkphoto.com/
Mark
http://www.chrislaudermilkphoto.com/
I assume you are reffering to the REST version? I still get method not found with XML-RPC.
Mark
SmugMug API Developer
My Photos