【问题标题】:How do I use Google's OAuth 2.0 Playground for Document List API?如何使用 Google 的 OAuth 2.0 Playground for Document List API?
【发布时间】:2012-05-29 17:20:17
【问题描述】:

我在使用 OAuth 2.0 Playground 上的文档列表 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 而被弃用,还是我做错了什么?

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2013-04-28
      • 2020-04-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-14
      • 2015-11-11
      • 1970-01-01
      • 2012-09-19
      相关资源
      最近更新 更多