12 messages in com.googlegroups.google-picasa-data-apiRe: Get Photo By Id| From | Sent On | Attachments |
|---|---|---|
| PJ | 25 Feb 2008 17:00 | |
| Jeff Fisher (Google) | 26 Feb 2008 10:57 | |
| PJ | 27 Feb 2008 18:21 | |
| PJ | 28 Feb 2008 17:11 | |
| PJ | 28 Feb 2008 18:12 | |
| Ryan Boyd (Google) | 29 Feb 2008 19:06 | |
| PJ | 01 Mar 2008 07:00 | |
| Ryan Boyd (Google) | 01 Mar 2008 13:09 | |
| Youngfe | 13 Mar 2008 23:55 | |
| Jeff Fisher (Google) | 14 Mar 2008 10:31 | |
| Youngfe | 16 Mar 2008 23:59 | |
| Jeff Fisher (Google) | 17 Mar 2008 12:03 |
| Subject: | Re: Get Photo By Id![]() |
|---|---|
| From: | PJ (opji...@gmail.com) |
| Date: | 02/28/2008 05:11:09 PM |
| List: | com.googlegroups.google-picasa-data-api |
and how do I retrieve the album name and description from a photo Id? Thanks.
On Feb 27, 9:21 pm, PJ <opji...@gmail.com> wrote:
Thanks, Jeff. I will try it out.
On Feb 26, 1:57 pm, "Jeff Fisher (Google)" <api....@google.com> wrote:
Hi PJ,
To get a PicasaEntry corresponding to a particular photo entry:
String photoUrl = "http://picasaweb.google.com/data/entry/api/user/ userID/album/albumName/photoid/1234567890"; PicasaEntry photoEntry = (PicasaEntry) service.Get(photoUrl);
However, if you want to get previous and next links inside of an album, you could just do an album query with max-results=1:
Now the feed will contain self, previous, and next links and a single photo entry.
Hope this helps!
Cheers, -Jeff
On Feb 25, 5:01 pm, PJ <opji...@gmail.com> wrote:
Ryan,
I am trying to develop a photo gallery in .NET using Picasa API. I have 3 pages - first one shows the list of albums, second shows the list of photos in an album (the album name is carried to the next page via a querystring) and the third page displays the photo clicked in page two. This is pretty much similar functionality seen in Picasa Albums on Google.
In the third page, I have the album name and photo id via querystrings. How do I retrieve a single photo by Album name (AlbumAccessor.Name) and Photo Id (PhotoAccessor.Id)? Right now, the only way I see is to lookup PhotoAccessor for each entry, then try to find a match to the photo id in querystring. Is there an easy way to this? I am unnecessarily hitting the server for each photo and trying to match it. Also, do I need to calculate the Previous and Next images manually or is there a property in one of the classes which has this information?
Thanks for any help.- Hide quoted text -
- Show quoted text -- Hide quoted text -




