I’m developing an application that should give the Google Apps administrator the ability to reassign ownership of files. I am currently using the Google Drive SDK for .NET with C # code.
When I authenticate with the test drive version of the Google Drive SDK at https://developers.google.com/drive/v2/reference/permissions/insert and fill out the FileIdfile that belongs to the administrator and try pasting a different owner from the same Google Apps domain, I I get 500 internal server errors. I use these values:
POST https://www.googleapis.com/drive/v2/files/0B1Y4_hVm0vbESlZuZHhBemtjcXM/permissions?key={YOUR_API_KEY}
Content-Type: application/json
Authorization: Bearer {MY_ACCESSTOKEN}
X-JavaScript-User-Agent: Google APIs Explorer
{
"role": "owner",
"type": "user",
"value": "user@mydomain.com"
}
Try It demo picks me up using scopes
, Try It, admin, delete.
SDK Google Drive, , API Google Docs , , . .
- ? , ?