0

我在使用OAuth 2.0 Playground上的 Document List API 时遇到问题。除了这个之外,所有其他 API 都可以工作。该请求是从操场发送的:

GET /feeds/default/private/full/ HTTP/1.1
Host: docs.google.com
Content-length: 0
Authorization: OAuth <the oAuth string generated>

响应返回为:

HTTP/1.1 400 Bad Request
status: 400
content-length: 19
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
expires: Tue, 29 May 2012 17:11:47 GMT
x-google-cache-control: remote-fetch
server: GSE
via: HTTP/1.1 GWA
cache-control: private, max-age=0
date: Tue, 29 May 2012 17:11:47 GMT
x-frame-options: SAMEORIGIN
content-type: text/html; charset=UTF-8
-content-encoding: gzip

Invalid request URI

API是因为Google Drive而被弃用还是我做错了什么?

4

1 回答 1

1

您必须通过将?v=3查询参数添加到 URI 或发送GData-Version: 3.0标头来向 API 的版本 3 发送请求。

于 2012-05-29T17:37:51.600 回答