0
我無法從google oauth中的文件權限列表中獲取所有詳細信息。請看下面。我非常感謝你們試圖幫助我。無法從google oauth中的gapi.client.drive.permissions.list中獲取所有權限詳細信息javascript
我只是使用JavaScript函數從這個鏈接 https://developers.google.com/drive/v2/reference/permissions/list
DISCOVERY_DOCS = ["[link removed as i couldnt post more than 2 links] /rest"]
SCOPES = '[link removed as i couldnt post more than 2 links] auth/drive'
的API項目啓用:谷歌雲端硬盤API和谷歌加API
輸出即時得到是
{
"result":{
"kind":"drive#permissionList",
"permissions":[
{
"kind":"drive#permission",
"id":"0829568615629092170",
"type":"user",
"role":"owner"
}
]
},
"body":"{\n \"kind\": \"drive#permissionList\",\n \"permissions\": [\n {\n \"kind\": \"drive#permission\",\n \"id\": \"0829568615629092170\",\n \"type\": \"user\",\n \"role\": \"owner\"\n }\n ]\n}\n",
"headers":{
"date":"Fri, 28 Jul 2017 04:38:32 GMT",
"content-encoding":"gzip",
"server":"GSE",
"content-type":"application/json; charset=UTF-8",
"vary":"Origin, X-Origin",
"cache-control":"private, max-age=0, must-revalidate, no-transform",
"content-length":"129",
"expires":"Fri, 28 Jul 2017 04:38:32 GMT"
},
"status":200,
"statusText":null
}
從鏈接https://developers.google.com/drive/v2/reference/permissions/list中的「嘗試此API」部分獲得的輸出Im是
{
"kind": "drive#permissionList",
"etag": "\"iqKjQ5Hr8W8KBrJOqxI/FbAMm4yBXAN8WtCcc\"",
"selfLink": "[link removed as i couldnt post more than 2 links]",
"items": [
{
"kind": "drive#permission",
"etag": "\"iqKjQ5HW8KBrJOqxI/ddr7iwAeGUpIhy8mSRc\"",
"id": "0829568615629092170",
"selfLink": "[link removed as i couldnt post more than 2 links]",
"name": "raj",
"emailAddress": "[email protected]",
"domain": "gmail.com",
"role": "owner",
"type": "user",
"photoLink": "[link removed as i couldnt post more than 2 links]",
"deleted": false
}
]
}
我剛使用了fields = *,並且我能夠獲取數據。謝謝..但我將不得不測試它更多,以檢查即時通訊仍然缺少任何數據..感謝很多.. – raj