0
我正嘗試使用服務帳戶撥打Google Reports API。帶有服務帳戶的Google Reports API
我遵循這個代碼示例:https://godoc.org/golang.org/x/oauth2/google#JWTConfigFromJSON
{
"error": {
"errors": [
{
"domain": "global",
"reason": "authError",
"message": "Access denied. You are not authorized to read activity records."
,
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Access denied. You are not authorized to read activity records."
}
}
我敢肯定它是在谷歌配置的一面,但:
- 我創建的服務帳戶
- 我下載了智威湯遜
- 我授權所需的示波器
然後我嘗試打電話給這個URL:https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/login
我能忘記什麼?
謝謝你幫助我。