How to make the file shareable using google drive api

后端 未结 4 1149
悲哀的现实
悲哀的现实 2021-01-13 05:37

I am trying to get the file using google drive api, by default the file is not shareable i want to make it shareable.

Here is my code:-

    

        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 05:52

    Using the answer under this question did it for me: make folder shared google drive api v3?

    I applied it to 'file' rather than folder, made the type 'anyone' and role 'reader' - seems to be the equivalent of making the file shared.

提交回复
热议问题