我正在尝试删除或删除共享文件,例如
删除
service.files().delete(id).execute();
回收站
service.files().trash(id).execute();
但是在删除案例中没有显示任何错误但是文件没有被删除,文件仍在我的驱动器上
并在垃圾箱中收到此错误
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"location" : "Authorization",
"locationType" : "header",
"message" : "The authenticated user does not have the required access to the file 1-Vt5gM2SLknnJs3nRFjWUly--nzfX1IWah-PxhLbNxo",
"reason" : "userAccess"
} ],
"message" : "The authenticated user does not have the required access to the file 1-Vt5gM2SLknnJs3nRFjWUly--nzfX1IWah-PxhLbNxo"
}
那么如何删除,删除或取消订阅共享文件?
事先提前