【发布时间】:2015-08-26 11:25:16
【问题描述】:
我需要创建一个文件并在 JS 应用程序中为同一域中的所有用户共享它。
这是创建请求正文:
{title: documentName, mimeType: "application/vnd.google-apps.spreadsheet"}
比我为创建的文件添加域权限。
权限的插入请求正文:
{ "role": "writer","type": "domain","value": domain}
对于创建文件的用户来说一切正常,我可以使用{q:"title='"+documentName+"' and trashed=false"} 找到该文件。
但我找不到其他用户的那个文件。
我试图查看 sharedWithMe 文件夹:
{q:"title='"+that._documentName+"' and trashed=false and sharedWithMe=true"} - 没有结果
但我在 Drive API 中找不到与 source:domain 相关的任何内容。
【问题讨论】:
-
google-chrome-extension 和这个有什么关系?抢先删除标签,但如果您能解释,请随时添加。
-
我认为这个问题试图解决同样的问题,但似乎他们也没有找到官方答案;其他评论员也这么说:stackoverflow.com/questions/20982992/…
标签: javascript google-drive-api