Google Groups Home
Help | Sign in
Message from discussion API change ?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Jeff Fisher (Google)  
View profile
 More options Mar 21, 1:16 pm
From: "Jeff Fisher (Google)" <api.jfis...@google.com>
Date: Fri, 21 Mar 2008 10:16:10 -0700 (PDT)
Local: Fri, Mar 21 2008 1:16 pm
Subject: Re: API change ?
Hi,

I checked in our documentation and it says <media:content> uses the
url attribute to specify the link:

http://code.google.com/apis/picasaweb/reference.html#media_content

Then, not being one to trust that the docs haven't been updated in the
not so distant future, I dug into the revision history. This element
has not been changed since launch last year. As far as I know, it has
always been the url attribute that people have had to use to retrieve
the <media:content> link. It appears to be a similar story for
<media:thumbnail> as well.

Cheers,
-Jeff

On Mar 21, 7:25 am, "tk.luczak" <tk.luc...@gmail.com> wrote:

> I had the same problem. Code under C# used to be:

>                 Uri postUrl = new Uri("http://picasaweb.google.com/
> data/entry/api/user/" + username + "/album/" + _albumName + "/
> photoid/" + _photoID);
>                 try
>                 {
>                     PicasaEntry pEntry =
> service.Get(postUrl.ToString()) as PicasaEntry;
>                     photoSrc = pEntry.Content.Src.Content;
>                 }
>                 catch (Google.GData.Client.GDataRequestException ex)
>                 {
>                     photoSrc = null;
>                 }

> know it is:

>                 Uri postUrl = new Uri("http://picasaweb.google.com/
> data/entry/api/user/" + username + "/album/" + _albumName + "/
> photoid/" + _photoID);
>                 try
>                 {
>                     PicasaEntry pEntry =
> service.Get(postUrl.ToString()) as PicasaEntry;
>                     photoSrc =
> (string)pEntry.Media.Content.Attributes.GetByIndex(

> pEntry.Media.Content.Attributes.IndexOfKey("url")
>                                                                    );
>                 }
>                 catch (Google.GData.Client.GDataRequestException ex)
>                 {
>                     photoSrc = null;
>                 }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google