Gapi drive.files.list响应仅显示文档

问题描述

我正在后台脚本中使用Google Drive API,因此可以与我的chrome扩展程序一起使用。我已完成身份验证工作,但我想知道为什么此问题响应仅返回文档,而不返回文件夹。

这是我的代码: manifest.json(用于扩展):

compareto()

background.html:

@override
  void initState() {
    super.initState();
    Timer(Duration.zero,_configureAmplify);
  }

background.js:

{
  "manifest_version": 2,"name": "Think. Future. Workforce. Connect.","description": "An extension that allows teachers to pick lessons from the smartpath repository,and transfer them to their Google Classroom drive.","version": "0.0.1","browser_action": {
    "default_popup": "index.html","default_title": "Open the popup"
  },"background": {
    "page": "background.html","persistent": false
  },"icons": {
    "16": "favicon.ico","48": "favicon.ico","128": "favicon.ico"
  },"key": "<my key>","oauth2": {
    "client_id": "<my client id>","scopes": [
      "https://www.googleapis.com/auth/drive.file"
    ]
  },"content_security_policy": "script-src 'self' https://apis.google.com/; object-src 'self';","permissions": [
    "https://vast-stream-39133.herokuapp.com/","https://www.googleapis.com/*","identity"
  ]
}

运行background.html检查视图时:https://i.stack.imgur.com/d54Sg.png

我只想看文件夹?有任何想法吗?当我对Node执行此命令时,不会发生这种情况。

解决方法

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

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

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