0

我也尝试使用更改 ID“1”。但它返回空结果。但是,如果搜索整个驱动​​器(团队驱动器和我的驱动器),它工作正常。我在谷歌 API 沙箱上试过这个。给出相同的结果。

这是我使用的代码片段。

            List<Change> allteamdriveChanges = new List<Change>();
            ChangesResource.ListRequest req = _gdrive.Changes.List();           
            req.StartChangeId = (long)(Convert.ToUInt64(changeId) + 1);
            req.MaxResults = 1000;
            req.IncludeTeamDriveItems = true;
            req.SupportsTeamDrives = true;
            req.TeamDriveId = teamDriveId;

            do
            {
                ChangeList changes = req.Execute();

                foreach(var change in changes.Items)
                {                   
                        allteamdriveChanges.Add(change);
                }               
                
                currentChangeId = changes.LargestChangeId.ToString();
              
                req.PageToken = changes.NextPageToken;

            } while (!String.IsNullOrEmpty(req.PageToken));

            return allteamdriveChanges;

        

任何人都可以调查一下吗?

4

0 回答 0