Google Drive API v3 getting root folder Id in java

后端 未结 2 1787
傲寒
傲寒 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

    Try the following combination to see if that works.

    String id = service.files().get("root").setFields("id").execute().getId();
    

提交回复
热议问题