API call for all images in album
Shizam
Registered Users Posts: 418 Major grins
An API call to get at least the urls if not all the info for all the images in an album would be nice. As it is I have to get a list of image IDs, then for each ID make another call, if there are 100 images in an album thats 100 requests! Or at least make it so that
smugmug.images.getInfo
Can accept multiple ImageID arguments, so I could get back like 10 at a time...
smugmug.images.getInfo
Can accept multiple ImageID arguments, so I could get back like 10 at a time...
Ever hear of Optimus Zoom? Me either.
SmugMug iOS Sorcerer
0
Comments
Hi Sizam,
Welcome to dgrin
by calling smugmug.images.get with the Heavy option set...it returns all the info for the images contained with that album. I am pretty sure you will find that a lot easier than having to call smugmug.images.getInfo.
Cheers,
David
SmugMug API Developer
My Photos
and thanks for the quick reply. I just tried with &heavy=1 and with &heavy=true and both only returned the same lite info:
<rsp stat="ok">
<method>smugmug.images.get</method><images></images>
</rsp>
<#rsp stat="ok">
<#method>smugmug.images.get
<#Images>
<#Image id="122357310"/>
<#/Images>
<#/rsp>
This is for:
smugmug.images.get
UPDATE: Heh, nm, I had to spec it as Heavy not heavy
Sam
I'm glad you got it working.
I am actually in the process of writing a heap of new functionality for API 1.2.1, as part of that process I am going to totally overhaul the API documentation, so don't worry for the moment.
Cheers,
David
SmugMug API Developer
My Photos