5 messages in com.googlegroups.google-picasa-data-apiDeleting 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:Deleting a Photo
From:jrs...@yahoo.com (jrs@yahoo.com)
Date:08/29/2007 07:13:54 AM
List:com.googlegroups.google-picasa-data-api

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,

jim