C#Google Drive SDK示例应用程序不上传文件

本文关键字:文件 应用程序 Drive SDK C#Google | 更新日期: 2023-09-27 18:26:40

我已经使用这里的文档设置了我的示例应用程序https://developers.google.com/drive/quickstart-cs但在样本代码的末尾

File file = request.ResponseBody;
Console.WriteLine("File id: " + file.Id);
Console.WriteLine("Press Enter to end this process.");
Console.ReadLine();

则CCD_ 1为空。为什么?

C#Google Drive SDK示例应用程序不上传文件

目的是,在Google API中,在API项目->服务中,我只打开了Drive SDK,但也必须打开Drive API