Google ドキュメントで既存のドキュメントのリビジョン フィードを取得しようとしています(実際にはリビジョン カウントが必要です)。以下のコードを使用して、GDataRequestException
. 内部例外は 404 ですが、応答文字列は次のとおりです (ドキュメント ID は切り捨てられます)。
<errors xmlns='http://schemas.google.com/g/2005'>
<error>
<domain>GData</domain>
<code>ResourceNotFoundException</code>
<internalReason>Invalid document id: file:0BxwzFL2fD0</internalReason>
</error>
</errors>
コードは次のとおりです。
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);