如何将 Google Apps 脚本项目 ID linked/bound 获取到 Google 电子表格

How to get Google Apps Script project ID linked/bound to a Google Spreadsheet

我的任务是使用 Google REST APIs 更新链接到某些电子表格的 Apps 脚本。如果我有脚本 ID,我知道如何更新脚本,但问题是我只有电子表格 ID,我需要更新 linked/bound 脚本。

我没有在 Apps Script REST API 中找到任何允许列出链接到电子表格的脚本的方法 https://developers.google.com/apps-script/api/reference/rest/

我也试过 Google 驱动器 REST APIs https://developers.google.com/drive/api/v2/reference/children/list and https://developers.google.com/drive/api/v2/reference/files/list 但没有成功。

目前无法从父电子表格 ID 中检索绑定的脚本 ID。您可以为这些问题加注星标(在左上角加注星标)来确定这些问题的优先级:

根据您的用例,Tanaike 提到了一个解决方法 here