我正在为 Google Drive 使用 C# API V2,但我似乎找不到 FilesResource.ListRequest.Fetch() 方法...我看到 FilesResource.ListRequest 接口与谷歌驱动器文档中描述的接口略有不同,所以我想已经对其进行了一些更改,但未反映在网络文档中。有人知道我现在应该如何执行查询吗?
这就是我要运行的:
public void SomeMethod(Settings settings)
{
var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description, settings.ApiKey, settings.ApiSecret);
var auth = new OAuth2Authenticator<NativeApplicationClient>(provider, AuthProvider);
_driveService = new Google.Apis.Drive.v2.DriveService(new BaseClientService.Initializer {Authenticator = auth});
var request = _driveService.Files.List();
request.Q = "mimeType='application/vnd.google-apps.folder' and trashed=false";
request.Fetch() // <-- This method does not exist! :/
}
提前致谢!