Oooh,
thanks Detlev this is it! :)

On Tue, Oct 13, 2009 at 6:47 PM, Detlev
<[email protected]<dschwabe%[email protected]>
> wrote:

>
> Photo IDs are only unique on a per user basis. To get to the image
> URLs you have to send a API request.
> To take you example photo, you could send a
> GET /entry/api/user/sfegan/photoid/5386972981658651970
> to photos.googleapis.com
>
> You would need to parse the response for <media:content> or
> <media:thumbnail> elements.
> Those contain the image URLs you are looking for. You can use the
> imgmax and thumbsize query parameters
> to control the image and thumbnail sizes that are returned by the
> request.
> For more information on that, see
> http://code.google.com/apis/picasaweb/docs/2.0/reference.html#Parameters
> Note: you can only refer to images with a maximum size of 800. So it's
> always a good idea to pass "imgmax=800".
> e.g. GET /entry/api/user/sfegan/photoid/5386972981658651970?
> imgmax=800&thumbsize=320
> will contain one <media:content> element with a URL pointing to the
> 800px size image (width or height) and will contain
> one <media:thumbnail> element pointing to the 320px size version. You
> can list multiple thumbnail sizes as a comma-separated list.
>
> However, there is a caveat: the format of the photo one-up URL you are
> planning to parse in order to construct above API URL,
> is not guaranteed to stay the same for all time.
>
> On Oct 13, 9:18 am, Yaniv Golan <[email protected]> wrote:
> > Cameron,
> > Thanks so much for taking the time to answer,
> > actually I'm not trying to predict it (I'm still realistic..)
> > i am trying to understand what API call will give me back the URL
> > based on image id
> > based on the assumption that in URL like thishttp://
> picasaweb.google.com/sfegan/NamibiaEtosha?feat=featured#538697...
> > the fragment represents the image id
> > any suggestions?
> >
> > On Oct 13, 5:43 pm, Cameron Hinkle <[email protected]>
> > wrote:
> >
> > > There's really no way to predict the URL for an image.  For instance,
> here
> > > is the URL to one of my Picasa photos:
> >
> > >http://lh5.ggpht.com/_g_TQ3qaWtNo/Sq_sydnw0AI/AAAAAAAAJWE/HUtLyEEuoao.
> ..
> >
> > > And here's the URL to the very next photo:
> >
> > >http://lh6.ggpht.com/_g_TQ3qaWtNo/Sq_syye_zBI/AAAAAAAAJWI/6yQf4aH8o-c.
> ..
> >
> > > Good luck predicting the seemingly random sequences of numbers and
> letters.
> >
> > > If you want a lighter solution to Zend, you can try my Lightweight PHP
> > > Picasa API.  It's a smaller download and it runs faster.  It doesn't
> use
> > > curl, though.  You can download it at
> >
> > >http://www.cameronhinkle.com/blog/id/3696159074811309536
> >
> > > Hope that helps.
> >
> > > Cameron
> >
> > > On Mon, Oct 12, 2009 at 4:05 PM, Yaniv Golan <[email protected]>
> wrote:
> >
> > > > hi
> > > > I'm writing a PHP mockup application that present photos posted to
> > > > social networks from different web services
> > > > i just need to get the URL to an image (or large enouth thumbnail)
> > > > based on it's id (extracted from the URL fragment)
> > > > this is fairly easy with other services (usually a simple HTTP call)
> > > > what would be the most simple way to achieve this with picasaweb?
> > > > i really don't feel like installing zend framework and use all this
> > > > heavy zend GDATA library for this, actually I'd like to be able to do
> > > > it using Curl because this is the only way i can multi-thread in PHP
> > > > there must be a simple way to this, after all this service is from
> > > > google right? :)
> >
> > > --
> > > See me Twitter!http://www.twitter.com/CletusTSJY
> >
> > >http://www.cameronhinkle.com/
> >
> > > "As systems developers, we have selected ourselves into the world of
> cool,
> > > calming, rational thought.  Either our code compiles, or it doesn't.
>  The
> > > compiler is never happy for us, nor mad at us.  Perhaps this is why we
> tend
> > > to apply logic as our main device for resolving disputes." -Peopleware,
> 2nd
> > > Edition
> >
> > > "Babies...before we're done here...y'all be wearing gold-plated
> diapers."
> > > -Rock Legend Bruce Dickinson
> >
>


-- 
יניב גולן
סטודיו: שביל המפעל 5 תל אביב יפו
טלפקס: 03-6811865
נייד: 052-8454646
mailto:[email protected]
http://www.yanivgolan.com

--~--~---------~--~----~------------~-------~--~----~
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