Google日历和Gmail API服务帐户模拟问题C#dotnet

时间:2018-06-20 05:35:21

标签: google-api google-oauth gmail-api google-api-dotnet-client google-calendar-api

我调查了Service account sample以访问google plus帐户中的公开信息。

类似地,我正在尝试使用具有域范围委派的服务帐户来模拟用户并浏览G-Suite帐户中的电子邮件ID。当我尝试调用 Gmail API 时,出现了 unauthorized_client 异常。有人可以帮我了解我在这里想念的吗?以下定义了Google控制台设置和代码段的详细信息。

•为服务帐户启用了域范围委派  enter image description here •使客户端可以在安全设置中访问API  enter image description here •以下是我在控制台中获得的代码和错误消息 应用。 enter image description here 我也尝试了谷歌日历API,并最终出现相同的错误。 enter image description here

我缺少任何设置吗?还是Google的C#客户端库有问题。我也在Google GIT中提出了一个问题。

0 个答案:

没有答案
相关问题