Mark,
You can just use the ->getDocument($id) method to retrieve a doc to be
deleted. This works for me:
$docsClient = new Zend_Gdata_Docs($httpClient);
$docId = 'dcptABC1234xyz';
$entry = $gdClient->getDocument($docId);
try {
$entry->delete();
} catch (Zend_App_HttpException $httpException) {
...
}
Thanks
- Jochen
On Aug 28, 1:28 am, Mark Alexander <[EMAIL PROTECTED]> wrote:
> Hi Jochen, thanks for your attention on this.
>
> Just to clarify - I don't need the "document:" prefix when referring
> to the document for deletion via feed url? I have tried this anyway
> but it still fails to delete the document successfully...
>
> Thanks for your patience, Mark.
>
> On Aug 27, 11:51 pm, "Jochen Hartmann (Google)"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi Mark,
>
> > It looks like your $docID is wrong. The %3A is urlencoded for ':', so
> > the documents ID is actually just 'ddm3whxc_4cp84g5hd'.
>
> > Thanks
> > - Jochen
>
> > On Aug 26, 5:03 am, Mark Alexander <[EMAIL PROTECTED]> wrote:
>
> > > Heya, I'm not entirely clear how one goes about deleting a document in
> > > PHP, I've tried:
>
> > > $docID = 'document%3Addm3whxc_4cp84g5hd';
> > > $docEntry = $gdClient->getDocumentListFeed('http://docs.google.com/
> > > feeds/documents/private/full/' . $docID);
> > > $docEntry->delete();
>
> > > But get an uncaught exception - any pointers as to where I'm going
> > > wrong or what I should do instead? Huge thanks!- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---