Hello guys I am using Google Picker API but when i comes to this code
var request1 = gapi.client.request({
'path': '/drive/v3/files/' + fileID + '/permissions',
'method': 'POST',
'headers': {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + oauthToken
},
'body': {
'role': role,
'type': type
}
});
request1.execute(function (resp) {
console.log(resp);
});
I keep on getting error on gapi.client.request, you see in the image below. I don't what Im doing wrong here I also search alot in the google. And this code is also same with the code that I found in google and I need this to run in my website but I keep getting this error.

