2012-05-29 97 views
0

我在使用OAuth 2.0 Playground上的文檔列表API時遇到問題。除此之外,所有其他API都可以工作。該請求被從操場發送爲:如何使用Google的OAuth 2.0 Playground獲取文檔列表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有什麼別的我做錯誤?

回答

1

您必須通過將?v=3查詢參數添加到URI或發送GData-Version: 3.0標頭,將請求發送到API的第3版。

+0

謝謝。我已經確認這兩種方法都有效。 –

相關問題