Make a copy of file from shared google drive to my google drive with Google Drive API v3 C#
My colleague shared with me a lot of university documents and I want to copy them to my google drive.
I start C# .net core application and Google Drive v3 API.
I have
var request = _dataService.Files.Get(id);
request.SupportsAllDrives = true;
request.Fields = "*";
return request;
Where dataService
_dataService = new DriveService(new BaseClientService.Initializer
{
ApiKey = settingsData.ApiKey,
ApplicationName = settingsData.ApplicationName
});
How to copy files ? He sent me file ids so I have access to that file id. How to make a copy to my google drive ? I didn't find anything in documentation.