5 messages in com.googlegroups.google-picasa-data-apiRe: Deleting a Photo
FromSent OnAttachments
jrs...@yahoo.com29 Aug 2007 07:13 
jrs...@yahoo.com29 Aug 2007 07:33 
Ryan Boyd (Google)29 Aug 2007 09:56 
jrs...@yahoo.com29 Aug 2007 12:07 
Ryan Boyd (Google)29 Aug 2007 13:09 
Subject:Re: Deleting a Photo
From:Ryan Boyd (Google) (api.@google.com)
Date:08/29/2007 01:09:49 PM
List:com.googlegroups.google-picasa-data-api

No problem -- glad to help. I'll work on at least getting a valid KB entry in for this to hopefully prevent this issue for future developers!

Cheers,

-Ryan

On Aug 29, 12:08 pm, "jrs@yahoo.com" <jrs@yahoo.com> wrote:

Ryan,

That did the trick... Thanks!

jim

On Aug 29, 12:56 pm, "Ryan Boyd (Google)" <api.@google.com> wrote:

Hi jim,

What scope are you using? The valid scope is:http://picasaweb.google.com/data/

I just noticed that we have a KB entry with the Google Base scope, instead of the Picasa scope.

Please let me know if this fixes the issue.

Cheers, -Ryan

On 8/29/07, jrs@yahoo.com <jrs@yahoo.com> wrote:

I've tracked down the versionid and added it to my DELETE request... same error.

On Aug 29, 10:14 am, "jrs@yahoo.com" <jrs@yahoo.com> wrote:

Hi,

I can't seem to avoid a 'Token invalid - AuthSub token has wrong scope' error being reported from an attempted photo delete operation. As far as I know, the token being sent is valid... works fine for adding photos... The PHP code I'm using is as follows-

$ch = curl_init(); $header[] = 'Authorization: AuthSub token="{myToken}"'; curl_setopt($ch, CURLOPT_URL, "http://picasaweb.google.com/data/ entry/api/user/{myUserName}/albumid/{myAlbumId}/photoid/{myPhotoId}"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST,'DELETE'); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); $result = curl_exec($ch); curl_close($ch);

The URI I'm using is coming directly from an album feed, so it should be correct. I'm passing no versionId as I have no idea where to find this.

Thanks,