• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks API feature request for smugmug.categories.get

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old May-16-2010, 12:40 PM
#1
MarcusT is offline MarcusT OP
Big grins
API feature request for smugmug.categories.get
smugmug.albums.get has a boolean parameter "Empty" which controls whether empty albums are returned.

I request that the same parameter should be added to smugmug.categories.get so that I can easily retrieve a list of categories which actually contain albums (surely a common requirement), instead of blindly including every single one that exists, which is the current behaviour.

If there are other API methods which do not currently have such a parameter to filter out empties, then please add it to them too.

I would also like a way to retrieve a count of the number of albums in each category in the same call, I suggest an "Extras" parameter should be added (and documented) to achieve this.

And finally, until these parameters are added, what is the most efficient method of determining which categories do contain albums?
Old Nov-28-2010, 05:35 AM
#2
MarcusT is offline MarcusT OP
Big grins
**bump**
Old Sep-18-2011, 05:21 PM
#3
MarcusT is offline MarcusT OP
Big grins
Still no response from a SmugMug API dev, so perhaps can someone suggest an efficient way to achieve the same end result - i.e. to retrieve a list of categories which actually contain albums, not ALL of them?
Old Sep-20-2011, 12:03 PM
#4
MSkaffari is offline MSkaffari
SmugMug Product Manager
MSkaffari's Avatar
Quote:
Originally Posted by MarcusT View Post
Still no response from a SmugMug API dev, so perhaps can someone suggest an efficient way to achieve the same end result - i.e. to retrieve a list of categories which actually contain albums, not ALL of them?
Hi Marcus

The categories are global, so even if a specific user doesn't have galleries in certain category, someone else does. Albums are handled differently as they are always specific to a user.

You can use smugmug.users.getTree to retrieve the categories/sub-categories and albums. This method suports 'empty' parameter

http://wiki.smugmug.net/display/API/....users.getTree
Tell The World!  
Tags
api , empty , filter , smugmug.categories.get
Similar Threads Thread Starter Forum Replies Last Post
"My Threads" feature request? jfriend Dgrin Forum Support 25 May-23-2011 07:08 AM
Site down? JimM SmugMug Support 19 May-26-2006 09:14 AM
Pro pricing API feature request rutt SmugMug APIs, Hacks & Tricks 0 Dec-10-2005 07:55 AM
API Function Request 3rdPlanetPhotography SmugMug APIs, Hacks & Tricks 0 Nov-26-2005 03:56 PM
Smugmug feature request - large tiff/psd file sharing rutt SmugMug Support 1 Aug-09-2004 10:48 AM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump