Hi Sean,

If you're authenticated, you'll get back the <gphoto:weight> fields on the
initial request.  For example:

http://picasaweb.google.com/data/feed/api/user/default?kind=tag

You should see <gphoto:weight>X</gphoto:weight> elements on each tag.

If you need this information available on unauthenticated feeds, you can
file a feature request for support.

-Sven

2008/9/20 Sean R <[EMAIL PROTECTED]>

>
> It looks to me like I would still need to issue a separate request for
> each tag I'm querying though, since the tagname needs to be specified
> in the request.  if I'm reading that right, then that wouldn't
> actually save me any requests.
>
> Also, if this requires authentication, would it only apply to the
> user's own feed?  I'm interested in being able to get this data on any
> arbitrary PWA account, regardless of who the end-user of my app is.
>
> Thanks!
> -Sean
>
> On Sep 19, 10:26 am, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > There is a better way of doing this, yes. You can retrieve just the
> > tag entry for the tag you are interested in, which looks like this
> >
> > http://picasaweb.google.com/data/entry/api/user/default/tag/${TAGNAME}<http://picasaweb.google.com/data/entry/api/user/default/tag/$%7BTAGNAME%7D>
> >
> > Note that this has to be done with authentication, which is why I used
> > default instead of the username.
> >
> > Then you can see a <gphoto:weight> that indicate the frequency of the
> > tag. There currently is a bug where this element is omitted if the tag
> > occurs exactly once, however:
> >
> > http://code.google.com/p/gdata-issues/issues/detail?id=735
> >
> > Cheers,
> > -Jeff
> >
> > On Sep 18, 10:02 pm, Sean R <[EMAIL PROTECTED]> wrote:
> >
> > > I'm not sure if I'm perhaps missing something, but is there a way to,
> > > in one request, get the number of occurrences of a tag for a user's
> > > account?
> >
> > > Right now, if I request a tag feed (ie -
> http://picasaweb.google.com/data/feed/api/user/${USERNAME}?kind=tag<http://picasaweb.google.com/data/feed/api/user/$%7BUSERNAME%7D?kind=tag>)
> > > then I get back a list of the tags in the account.  If I want to know
> > > how frequently each of those tags shows up, I then have to issue a
> > > separate request for each tag to get the number of entries with that
> > > tag (for example:
> http://picasaweb.google.com/data/feed/api/user/${USERNAME}?kind=photo&tag=${TAG}&max-results=1000<http://picasaweb.google.com/data/feed/api/user/$%7BUSERNAME%7D?kind=photo&tag=$%7BTAG%7D&max-results=1000>
> > > ).
> >
> > > Is there a simpler way to do this?  On large accounts this takes
> > > forever to complete - my app frequently winds up exceeding the
> > > AppEngine maximum execution deadline, which is pretty suboptimal.
> >
> > > On a slightly related note, the PyDocs say specifically that
> > > GetTaggedPhotos returns all tags returned by the server by default
> > > (http://gdata-python-client.googlecode.com/svn/trunk/pydocs/
> > > gdata.photos.service.html ), but I find that I need to specify a high
> > > limit number in order to get back more than 100 results.  Is that
> > > intended?  It seems to go against what the docs say.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to