Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Ruby在google drive中创建文件夹_Ruby_Rubygems_Google Drive Api - Fatal编程技术网

使用Ruby在google drive中创建文件夹

使用Ruby在google drive中创建文件夹,ruby,rubygems,google-drive-api,Ruby,Rubygems,Google Drive Api,我正在使用Ruby和Google驱动API。 如何在根位置创建文件夹?Google Drive中的文件夹本质上是一个MIME类型为application/vnd.Google apps.folder的文件,因此您可以使用《参考指南》中的Ruby代码,并将mimeType字段设置为该值 检查文档中的完整代码段:

我正在使用Ruby和Google驱动API。

如何在根位置创建文件夹?

Google Drive中的文件夹本质上是一个MIME类型为
application/vnd.Google apps.folder
的文件,因此您可以使用《参考指南》中的Ruby代码,并将
mimeType
字段设置为该值

检查文档中的完整代码段: