我正在使用Google .NET API从谷歌分析中获取分析数据.
这是我开始身份验证的代码:
IAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer { ClientSecrets = new ClientSecrets { ClientId = googleApiClientId, ClientSecret = googleApiClientSecret }, Scopes = new[] { Google.Apis.Analytics.v3.AnalyticsService.Scope.AnalyticsReadonly }, DataStore = new Google.Apis.Util.Store.FileDataStore("Test_GoogleApi") });
它使用FileDataStore作为文件存储在本地用户配置文件中.我在ASP.NET应用程序中运行此代码,因此我无法真正使用该FileDataStore,因此我需要的是获取数据的其他方法.
Google.Apis.Util.Store仅包含FileDataStore和IDataStore的接口.在我开始实现自己的DataStore之前 - 是否还有其他可供下载的DataStore对象?
谢谢