[Flashr] get username

Kelvin Luck kelvin at kelvinluck.com
Fri Apr 14 10:15:32 EDT 2006


Hi,

> i want from this function to get photo information (for example user name, 
> description, tags. etc)
> Is this possible?

You can easily get the user name by changing your call to photosSearch 
to the following:

_flickr.photosSearch({tags:"cool", extras:"owner_name", per_page:200, 
page:1});

To get the description or tags it is a bit more tricky. Basically you 
will need to call photosGetInfo with each of the id's of the photos that 
your search returned... The problem is that in Flashr 0.4 you can only 
do one call to the flickr API at a time. So you would have to make a 
call and then onPhotosGetInfo make the call to get the information about 
the next photo etc...

Flashr 0.5 is currently in beta [see 
http://osflash.org/pipermail/flashr_osflash.org/2006-March/000263.html ] 
and makes this loads easier by allowing you to queue requests to the 
Flickr API. I would recommend taking a look at this (even though there 
are currently no examples),

Hope that helps,

Kelvin :)



More information about the Flashr mailing list