[Flashr] get username
Kelvin Luck
kelvin at kelvinluck.com
Mon Apr 17 08:53:48 EDT 2006
Spiros Gerokostas wrote:
> ok thanks again kelvin (must read the whole documentation!!!)
>
> another example is
>
> trace("realname: " + photos[i].owner.realname);
>
> but returns undefined why?
The realname isn't available until you have made an API call which
returns it. At the moment all you know is the id and username for the
user because that is all that is returned by your call to photosSearch.
To see what information each call returns you can use flickr.com's API
Explorer (e.g.
http://www.flickr.com/services/api/explore/?method=flickr.photos.search
or http://www.flickr.com/services/api/ for a list of all methods).
So to find out the real name of the user you would need to call
peopleGetInfo with the user id (e.g. photos[i].owner.nsid) and wait for
the relevant onPeopleGetInfo response...
Hope this helps,
Kelvin :)
More information about the Flashr
mailing list