“Login Required” 401 Unauthorized message when calling the v3 Google Calendar API using a Service Account via OAuth 2.0

后端 未结 6 634
时光取名叫无心
时光取名叫无心 2020-12-29 06:35

First, let me explain what I am trying to do, as this is a two part question.

I am building a JAX-RS service that internally authenticates with a Google account via

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 07:17

    Such behaviour may occur if you did not add api user in admin panel (in your case Documents panel I guess), for instance in google analytics you have to add new user where email address is the same which you got from api (provided by the Google API Service Account, after creating private key). In analytics it looks like this:

    example in google analytics

提交回复
热议问题