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