On Wed, Oct 6, 2010 at 3:51 AM, perikut <pero...@gmail.com> wrote:

>
> thanks for the answer but sorry, i still cannot catch it.
> using this url i can see the list of photos in my browser:
>
>
> http://picasaweb.google.com/data/feed/api/user/115590752798736746987?kind=photo
>
> I inspect the XML (source code of the page) and I gett the feed u talk
> about.
> I find the <link> you talk about and points here:
>
> <link rel='self' type='application/atom+xml' href='http://
> picasaweb.google.com/data/feed/api/user/115590752798736746987?
> q=&amp;start-index=1&amp;max-results=100&amp;kind=photo
>
You are looking at the wrong links. The "User/Photo" feed you are expecting
has it's own "<link>"
elements. Further down, the section with all the (photo) entries starts,
each of them with their own
section of <link>s. Those are the ones you should inspect.


>
> I don't know if it's important here, but this URL does not work.
> I also can see in this XML some URLs pointing to my images, that's OK,
> but they don't keep in common almost anything!
>
>
> http://lh3.ggpht.com/_kLPqj5qt1DQ/TKu1uSBST3I/AAAAAAAAABE/ASnweFrZ86s/s288/P3290017.JPG
>
> http://lh5.ggpht.com/_kLPqj5qt1DQ/TKu1uOttiTI/AAAAAAAAABA/NZk9ie_SE5Y/s288/P3160091.JPG
>
> (i wanna load photos from picassa in my webpage, so just knowing the
> name of photo is enough; in case the URL for each photo is completely
> different I should parse the resulting XML each time!)
>
> Following your schema...
>
> http://picasaweb.google.com/data/entry/api/user/liz/photoid/photoID
>
> I try:
> http://picasaweb.google.com/data/entry/api/user/115590752798736746987/P3160091.JPG
>
> with invalid request URI as answer
>
> the "photoID" is not meant to be the filename, but a Long decimal number.
You also have to insert the ".../photoid/..." keyword into the URL, followed
by the actual photo id.

You can also find the photo id in the URL of the one-up photo view:
http://picasaweb.google.com/115590752798736746987/RanoBe#*
5524709173728479538*

To grab the entry for this photo:
http://picasaweb.google.com/data/entry/api/user/115590752798736746987/photoid/5524709173728479538

Each photo itself, can also be a feed (or collection) of other things. By
default, the feed for a photo:
http://picasaweb.google.com/data/feed/api/user/115590752798736746987/photoid/5524709173728479538

would return itself and a collection of comment entries (if your photo had
some).

We also differentiate between the meta data of a photo (that comes back in
the feeds and entries) and the actual media content (the image urls you have
found).



I'm doing something wrong?
> thanks in advance,
>
> Pere
>
> On 6 Oct, 02:55, Detlev Schwabe <dschw...@google.com> wrote:
> > You're right, the online documentation does not really explain this
> > explicitly.
> > When you examine the example response given athttp://
> code.google.com/apis/picasaweb/docs/2.0/developers_guide_proto...
> > you'll notice that each entry contained in an album feed also has a
> number
> > of <link> elements. One of them is the "self" link to the entry.
> > e.g.:
> >
> > <link rel='self' type='application/atom+xml'
> >       href='
> http://picasaweb.google.com/data/entry/api/user/liz/albumid/albumID/p...>
> >
> > This gives you the clue how to query individual photo entries. The long
> > version is the URL:
> >
> > http://picasaweb.google.com/data/entry/api/user/liz/albumid/albumID/p...
> >
> > The short version, since photo id's are unique per user:
> >
> > http://picasaweb.google.com/data/entry/api/user/liz/photoid/photoID
> >
> > In general, with ".../feed/user/..." you are requesting a collection, and
> > with ".../entry/user/..." you are requesting a specific element/entry
> from a
> > collection.
> >
> > On Tue, Oct 5, 2010 at 4:40 PM, perikut <pero...@gmail.com> wrote:
> > > hi,
> > > i have read how to get a list of photos of an album via GET requests,
> > > but what if I want to get a specific photo (if I know the identifier)?
> >
> > > thanks in advance,
> > > Pere
> >
> > > --
> > > 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
> > > google-picasa-data-...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-picasa-data-api+unsubscr...@googlegroups.com<google-picasa-data-api%2bunsubscr...@googlegroups.com>
> <google-picasa-data-api%2bunsubscr...@googlegroups.com<google-picasa-data-api%252bunsubscr...@googlegroups.com>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-picasa-data-api?hl=en.
> >
> >
>
> --
> 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
> google-picasa-data-...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-picasa-data-api+unsubscr...@googlegroups.com<google-picasa-data-api%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-picasa-data-api?hl=en.
>
>

-- 
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 google-picasa-data-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-picasa-data-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to