I am not sure what I missed, but I generated the "json" file and connected it to the code after installing the nuget package. I have access to read files from the google drive folders but I cannot create a file. It keeps giving me a permission error.
var fileMetadata = new Google.Apis.Drive.v3.Data.File();
fileMetadata.Name = "SomeFile.txt";
fileMetadata.MimeType = "application/vnd.google-apps.drive-sdk";
var request = service.Files.Create(fileMetadata);
request.Fields = "id";
var file = request.Execute();
I have tried changing the scopes to .Drive and all the rest but it still didn't work. What should I do? Should it be something that I missed in the site where i generated the json before even installing the nuget package of the API?
Error: Google.Apis.dll but was not handled in user code
Additional information: Google.Apis.Requests.RequestError
Insufficient Permission [403]
Errors [
Message[Insufficient Permission] Location[ - ] Reason[insufficientPermissions] Domain[global]
Thanks