因为几天我尝试使用OAuth 2.0 for Server to Server Applications with JWT使用我的C#获取用户个人资料。
对于谷歌驱动器我知道我们可以使用服务器到服务器的方法,但我不确定谷歌分析。我们可以使用吗?
答案 0 :(得分: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
答案 1 :(得分:1)
还没有。请参阅Service Accounts have arrived。
以下Google开发人员服务目前支持服务帐户:
- Google云端存储
- Google Prediction API
- Google URL Shortener
- Google OAuth 2.0授权服务器
- Google API控制台
- 适用于Python,Java和PHP的Google API客户端库
随着时间的推移,将支持更多的Google API和客户端库。
注册Google Developers Blog和Analytics Blog个Feed。他们会在GA向服务帐户开放时发布,如果有的话。