Google Drive API v3 getting root folder Id in java

后端 未结 2 1786
傲寒
傲寒 2021-01-06 16:53

I tried several things bu couldn\'t get the root folder id in Java Api v3.

What I tried:

String id = service.files().get(\"fileId=root\").setFields(\         


        
2条回答
  •  [愿得一人]
    2021-01-06 17:13

    To execute the above combination, you have to give your application full access to use Drive. OAuth 2.0 scope that needs to be given: https://www.googleapis.com/auth/drive or https://www.googleapis.com/auth/drive.readonly

提交回复
热议问题