List Info

Thread: Re: Flashr Digest, Vol 22, Issue 2




Re: Flashr Digest, Vol 22, Issue 2
country flaguser name
United States
2007-06-25 12:12:34
Hi,

Sorry - my mistake! I've just realised that tagsGetListUser
doesn't 
return any information about how many times a tag is used.
This is 
because flickr.tags.getListUser on the Flickr API doesn't
return this 
information either:

http://www.flickr.com/services/api/flickr.tags.ge
tListUser.html

If you want information about a user's tags including how
many times 
they are used then try tagsGetListUserPopular:

http://flashr.kelvinluc
k.com/assets/0.5/docs/files/com/kelvinluck/flashr/core/Flash
r-as.html#com.kelvinluck.flashr.core.Flashr.tagsGetListUserP
opular

This calls flickr.tags.getListUserPopular which does return
a "count" 
attribute:

http://www.flickr.com/services/api/flickr.
tags.getListUserPopular.html

Hope that helps,

Kelvin 

Sébastien Kafif wrote:
> thanks for your help ;)
> 
> I try your piece of code ... but it 's still not
working,
> 
> I show my all class :
> 
> import com.kelvinluck.util.LogWrapper;
> import com.kelvinluck.flashr.core.*;
> import com.ma.utils.Proxy;
> //
> class com.TagSearch extends MovieClip
> {
>     var USER_ID:String = "XXXXXXXXXXXXXX";
>     var PER_PAGE:Number = 135;
>     var flashr:Flashr;
>     var flashrResponse:FlashrResponse;
>     var myAllTags:Object;
>     //
>     //
>     function TagSearch()
>     {
>         LogWrapper.getInstance().init();
>         LogWrapper.getInstance().addTracePublisher();
>         flashr = Flashr.getFlashr();
>         flashr.apiKey =
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
>         flashr.cacheQueries = true;
>         flashrResponse = new FlashrResponse();
>         flashrResponse.onPeopleGetInfo =
Proxy.create(this, 
> onPeopleGetInfo);
>         flashrResponse.onTagsGetListUser =
Proxy.create(this, 
> onTagsGetListUser);
>         flashr.peopleGetInfo(USER_ID);
>         flashr.tagsGetListUser(USER_ID);
>     }
>    
>     //
>     function onPeopleGetInfo (person:Person)
>     {
>     //       
>     }
>     //
>     function onTagsGetListUser(person:Person)
>     {
>         myAllTags = person.getTags();
>         LogWrapper.getLog().debug(myAllTags);
>         for (var raw:String in myAllTags)
>         {
>             var tagInfo:Object = myAllTags[raw];
>             trace(tagInfo.tag.raw + ' is used ' +
tagInfo.tag.count + ' 
> times by ' + person.username);
>             return  undefined for tagInfo.tag.count
>         }
>     }
>     //
>     //
>     public function toString():String
>     {
>         return
"[com.kelvinluck.barcamp.TagSearch]";
>     }
> }
> 
> tagInfo.tag.count is always undefined ...
> any ideas ??
> 
>
------------------------------------------------------------
------------
> Découvrez sans tarder l'expérience ultime de messagerie
en ligne Windows 
> Live Hotmail ! <http://get.live
.com/mail/overview>
> 
> 
>
------------------------------------------------------------
------------
> 
> _______________________________________________
> Flashr mailing list
> Flashrosflash.org
> http://osflash.org/mailman/listinfo/flashr_osflash.org


_______________________________________________
Flashr mailing list
Flashrosflash.org
http://osflash.org/mailman/listinfo/flashr_osflash.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )