Is there a way to get 'Photo' details...

Topics: Developer Forum
Nov 19, 2011 at 5:02 PM

Hi.. I'd like to get a specific 'Photo' by it's PhotoId and was wondering if there was a function to do this without having to get a 'PhotoCollection' and iterate through it.  I know about the 'PhotoInfo' class but it does not contain the same information as the 'Photo' class.

Coordinator
Nov 19, 2011 at 8:56 PM

No, there is no way to get a Photo instance, rather than a PhotoInfo instance for a single photo.

What properties of the Photo class are you wanting that aren't available on the PhotoInfo class?

Sam

Nov 19, 2011 at 9:27 PM

I need Photo.SmallWidth and Photo.SmallHeight for sure... I may need the MediumWidth and MediumHeight as well.

Coordinator
Nov 20, 2011 at 2:19 PM
Edited Nov 20, 2011 at 2:20 PM

You would have to call PhotosGetSizes to get that information.

Sam

Nov 21, 2011 at 6:04 PM

That worked out fine Sam... I just used the async call to photosgetsizes and was able to use the PhotoInfo with some help from the SizeCollection.  Thanks!!