I am trying to get revision feed for an existing document in Google Docs (actually I just need revision count). I use the code below and get a GDataRequestException
. The inner exception is 404 while the response string is (document id is truncated):
<errors xmlns='http://schemas.google.com/g/2005'>
<error>
<domain>GData</domain>
<code>ResourceNotFoundException</code>
<internalReason>Invalid document id: file:0BxwzFL2fD0</internalReason>
</error>
</errors>
And here is the code:
var documentsService = new DocumentsService("myappname");
documentsService.SetAuthenticationToken(token);
var uri = string.Format("https://docs.google.com/feeds/default/private/full/{0}/revisions", Uri.EscapeDataString(resourceId));
var query = new DocumentsListQuery(uri);
var feed = documentsService.Query(query);