可以测试 Oauth 的每个范围。我试过https://www.googleapis.com/auth/fusiontables。一种可能的操作是“SQL QUERY”。
但是,我不知道如何插入 SQL 参数。如果我在“添加标题”中添加它,这是回复:
Request / Response
POST /fusiontables/v1/query HTTP/1.1
Host: www.googleapis.com
Content-length: 0
Content-type: application/json
Authorization: OAuth ya29.AHES6ZSEoq_cukM3HJmIETXNB5CN4xD1VhUVxhANuYTrLlo7juxMow
Sql: insert into 1d8SL_beOD82al66Xnpb-juHYq8b4WW9m6ORNzsM (Text) values ('casa')
HTTP/1.1 400 Bad Request
Content-length: 249
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
X-google-cache-control: remote-fetch
-content-encoding: gzip
Server: GSE
Reason: Bad Request
Via: HTTP/1.1 GWA
Cache-control: private, max-age=0
Date: Mon, 19 Nov 2012 14:21:33 GMT
X-frame-options: SAMEORIGIN
Content-type: application/json; charset=UTF-8
Expires: Mon, 19 Nov 2012 14:21:33 GMT
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Required parameter: sql",
"locationType": "parameter",
"location": "sql"
}
],
"code": 400,
"message": "Required parameter: sql"
}
}
有任何想法吗?