Google Drive API call to insert Public Share permissions on Fusiontables causes Internal Error

前端 未结 4 981
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 07:45

I have been trying to use the Google Drive API to make a Fusiontable publicly readable, and have not been able to get it to work. I am able to use the OAuth 2.0 Playground

4条回答
  •  太阳男子
    2021-01-13 08:09

    I have a good news!

    I've received an email from googletables-feedback. They says that it should be working now.

    My code on Google Client JS API works fine

    var setAccess = function setAccessF() {
        gapi.client.request({
            path : '/drive/v2/files/{fileID}/permissions',
            method : 'post',
            body : {
                'value' : 'anyone',
                'type' : 'anyone',
                'role' : 'reader'
            }
        }).then(opt_onFulfilled, opt_onRejected);
    }
    
    function opt_onRejected(e) {
        console.log(e)
    }
    
    function opt_onFulfilled(e) {
        console.log(e)
    }
    

提交回复
热议问题