Google云端硬盘-Api V3-CURL-创建文件夹,子文件夹-家长ID

问题描述

我正在使用Filemaker通过Google Drive API-CURL选项保存文件。我想使用以下路径保存文档:

Companies
          *Proyects
                -Purchase Orders
                     - Purchase Order 1 (Folder)
                             - File 1
                             - File 2
                             - ....
                     - Purchase Order 2
                     - .........
                - Invoices
                     - Invoice 1 (folder)
                            - File 1
                            - File s
                     - Invoice 2
                     - .........

我已经可以使用Drive API。 我的访问令牌可用于POST方法

我可以使用curl命令在Google云端硬盘中创建新文件夹。

curl \
  -H 'Authorization: Bearer ### your access token ###' \
  -H 'Content-Type: application/json' \
  -d '{"name": "mb","mimeType": "application/vnd.google-apps.folder"}' \
  https://www.googleapis.com/drive/v3/files

方法将在每次运行脚本时创建一个具有相同名称文件夹。但是,如果我只想在“购买订单1”文件夹中保存一个新文档,我不知道该怎么办。

有办法吗?

感谢您的帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)