默认文档Feed Feed返回无效的请求URI

时间:2012-08-30 03:30:42

标签: google-docs-api google-drive-api

我阅读文档的方式似乎是oauth用户的默认文档Feed网址为https://docs.google.com/feeds/default/private/full

https://developers.google.com/google-apps/documents-list/#getting_a_list_of_documents_and_files

OAuthRequest request = new OAuthRequest(
  Verb.GET, 
  "https://docs.google.com/feeds/default/private/full");
service.signRequest(accessToken, request);
Response response = request.send();
String bodyString = response.getBody();
JSONObject body = new JSONObject(bodyString);

我从此Feed网址收到无效的无效请求URI响应。

1 个答案:

答案 0 :(得分:4)

您必须添加查询参数?v=3或发送HTTP标头GData-Version: 3.0以使用Documents List API v3。

还建议使用较新的Drive API,因为它执行Documents List API所做的一切,并受到一组新的客户端库的支持。有关Drive SDK的更多详细信息,请查看https://developers.google.com/drive/