C# 无法访问SpooneDriveForBusiness FileActivity REST API调用

C# 无法访问SpooneDriveForBusiness FileActivity REST API调用,c#,office365,o365rwsclient,C#,Office365,O365rwsclient,我正在使用微软的o365 REST API客户端库(),并且已经能够使许多API调用正常工作,但是对于“SpooneDriveForBusiness FileActivity”我没有任何运气。此外,我没有在o365 web服务atom提要中看到它的广告 以下是事件应返回内容的说明: 查看其中的源代码似乎是一个有效的函数,但是当从c#应用程序(如下)使用o365rwsclient库时,我得到一个404错误(找不到URL) 知道发生了什么事吗?是否实现了此报告(也可以接受Powershell cmd

我正在使用微软的o365 REST API客户端库(),并且已经能够使许多API调用正常工作,但是对于“SpooneDriveForBusiness FileActivity”我没有任何运气。此外,我没有在o365 web服务atom提要中看到它的广告

以下是事件应返回内容的说明:

查看其中的源代码似乎是一个有效的函数,但是当从c#应用程序(如下)使用o365rwsclient库时,我得到一个404错误(找不到URL)

知道发生了什么事吗?是否实现了此报告(也可以接受Powershell cmdlet或直接REST调用)-如果是,我如何访问它

using Microsoft.Office365.ReportingWebServiceClient;
using System;

namespace O365ReportingDataExport
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            ReportingContext context = new ReportingContext();
            //If you enter invalid authentication information, Visual Studio will throw an exception.
            context.UserName = @"PUT YOUR OFFICE 365 USER EMAIL ADDRESS HERE";
            context.Password = @"PUT YOUR OFFICE 365 USER PASSWORD HERE";
            //FromDateTime & ToDateTime are optional, default value is DateTime.MinValue if not specified
            context.FromDateTime = DateTime.MinValue;
            context.ToDateTime = DateTime.MinValue;
            context.SetLogger(new CustomConsoleLogger());

            IReportVisitor visitor = new CustomConsoleReportVisitor();

            ReportingStream stream1 = new ReportingStream(context, "SPOOneDriveForBusinessFileActivity", "stream1");
            //Calls VisitReport 
            stream1.RetrieveData(visitor);

            Console.WriteLine("Press Any Key...");
            Console.ReadKey();
        }

        private class CustomConsoleLogger : ITraceLogger
        {
            public void LogError(string message)
            {
                Console.WriteLine(message);
            }

            public void LogInformation(string message)
            {
                Console.WriteLine(message);
            }
        }

        private class CustomConsoleReportVisitor : IReportVisitor
        {
            public override void VisitBatchReport()
            {
                foreach (ReportObject report in this.reportObjectList)
                {
                    VisitReport(report);
                }
            }

            public override void VisitReport(ReportObject record)
            {
                Console.WriteLine("Record: " + record.Date.ToString());
            }
        }
    }
}

在与Microsoft的O365支持团队交谈后,似乎能够在OneDrive for Business中查看文件活动是一项尚未部署的功能,该功能仍在内部测试中(因此能够在REST API中查看)