使用c#对谷歌分析实时api进行身份验证 [英] struck with authentication of the google analytics real time api using c#
问题描述
在进行身份验证时,我们使用FileDataStore Path进行了攻击。它可以正常编译,但在运行时失败。
以下参考是代码。
Autenticated.credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets {ClientId = ******,ClientSecret = *** ****},
new [] {*************,AnalyticsService.Scope.AnalyticsReadonly},
*** *******,
CancellationToken.None,
new FileDataStore(******))。结果;
之前我构建了使用Google Analytics核心API(c#)的解决方案,通过使用链接 - http://www.reimers.dk/jacob-reimers-blog/added-google-analytics- reader-for-net和http://www.thecyberwizard.com/index.php/5/google-analytics-api-in-c-part-1/。但它似乎与上面的不同。请提供有关创建完整解决方案的任何帮助。
While doing the authentication we struck with FileDataStore Path. It works fine up to compiling but its get failing at run time.
For reference below is the code for this.
Autenticated.credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = ******, ClientSecret = ******* },
new[] { *************, AnalyticsService.Scope.AnalyticsReadonly },
**********,
CancellationToken.None,
new FileDataStore(******)).Result;
Previously i built the solution for using Google Analytics Core API (c#), By using the links - http://www.reimers.dk/jacob-reimers-blog/added-google-analytics-reader-for-net and http://www.thecyberwizard.com/index.php/5/google-analytics-api-in-c-part-1/ . But it seems to be different with above one. Please any help on creating the complete solution.
推荐答案
这篇关于使用c#对谷歌分析实时api进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!