【发布时间】:2013-02-10 09:13:51
【问题描述】:
我正在尝试连接到 Google Analytics(分析)报告 API 以获取基本的网页浏览统计信息。我正在尝试遵循本教程 (http://www.arboundy.com/2012/04/getting-started-with-google-analytics-in-c/)。我无法设置正确的位来获得成功的身份验证,因为似乎 google 最近更改了很多 API,因此原始配置似乎不起作用。
这是我目前拥有的:
Service = new AnalyticsService("MyDemoApp");
Service.setUserCredentials("user@gmail.com", "password");
AccountQuery AccountsQuery = new AccountQuery("https://www.googleapis.com/analytics/v3/data/ga"/*Not sure what goes here this gives a 400*/);
AccountFeed AccountsFeed = Service.Query(AccountsQuery); // 400 error here
任何想法如何通过 V3 api 连接到这个(这似乎是我从 NuGet 得到的)
【问题讨论】:
标签: c# google-api google-analytics-api