I'm resurfacing this post because it hasn't been settled.
I am trying to change permission of my FusionTable via Google Drive API, and I'm getting 500 error from Google. Here's the situation.
My request:
uri = URI('https://www.googleapis.com/drive/v2/files/{{my fusion table id}}/permissions')
http = Net::HTTP::new(uri.host, uri.port)
req = Net::HTTP::Post.new(uri.path)
req["Authorization"] = {{proper oauth}}
req["Content-Type"] = "application/json"
bodyObj = {}
bodyObj["role"] = "writer"
bodyObj["type"] = "anyone"
req.body = bodyObj.to_json
response = http.request(req).response
puts response.body
And the Response body is:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "internalError",
"message": "Internal Error"
}
],
"code": 500,
"message": "Internal Error"
}
}
This seems to be problem that others have faced as well. Does anyone know what the correct solution is or is this simply something that Google needs to fix?
Thank you.