我想打电话给谷歌API方法drive.files.insert建立在谷歌云端硬盘中的文件夹这样的请求(使用谷歌的API对于JavaScript客户端库):指定请求主体在谷歌API调用(使用谷歌API客户端JavaScript库)
var request = gapi.client.drive.files.insert({'convert': 'false', 'ocr': 'false'});
request.execute(function(resp) { console.log(resp); });
的问题是,我需要指定在请求主体的一些参数,可以例如:
{
"title":"testFolder",
"description":"hello world",
"mimeType":"application/vnd.google-apps.folder"
}
但我无法弄清楚如何指定这些参数Google API客户端JavaScript的图书馆。有什么建议我可以做到这一点?
非常感谢,所以我们需要使用'gapi.client.request',如果我们想发送请求与身体 – KiL 2012-08-07 05:24:28
有没有一个解决方案,而不使用gapi.client.request? – Eduardo 2013-12-17 18:13:17