3

几天以来,我一直在尝试使用 Using OAuth 2.0 for Server to Server Applications with JWT来使用我的 C# 获取用户配置文件。

对于谷歌驱动器,我知道我们可以使用服务器到服务器的方法,但我不确定谷歌分析。我们可以使用它吗?

4

2 回答 2

4

是的你可以!

Service Accounts

Useful for automated/offline/scheduled access to Google Analytics data for your own account. For example, to build a live dashboard of your own Google Analytics data and share it with other users.
There are a few steps you need to follow to configure service accounts to work with Google Analytics:

1. Register a project in the APIs Console.
2. In the Google APIs Console, under the API Access pane, create a client ID with the Application Type set to Service Account.
3. Sign-in to Google Analytics and navigate to the Admin section.
4. Select the account for which you want the application to have access to.
5. Add the email address, from the Client ID created in the APIs Console from step #2, as a user of the selected Google Analytics account.
6. Follow the instructions for Service Accounts to access Google Analytics data.

来源:https ://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtAuthorization

于 2012-12-07T13:01:25.597 回答
1

还没有。请参阅服务帐户已到达

以下 Google 开发者服务目前支持服务帐号:

  • 谷歌云存储
  • 谷歌预测 API
  • 谷歌网址缩短器
  • 谷歌 OAuth 2.0 授权服务器
  • Google API 控制台
  • 适用于 Python、Java 和 PHP 的 Google API 客户端库

随着时间的推移,将支持更多的 Google API 和客户端库。

注册Google Developers 博客Analytics 博客供稿。他们将在 GA 向服务帐户开放时发布(如果有的话)。

于 2012-09-22T14:01:30.197 回答