Google Calendar API服务帐户错误

问题描述 投票:0回答:1

出现此错误

{ "error": 
     { "errors": 
         [
            { "domain": "calendar", "reason": "forbiddenForServiceAccounts", "message": "Service accounts cannot invite attendees without Domain-Wide Delegation of Authority." } 
         ], 
         "code": 403,
         "message": "Service accounts cannot invite attendees without Domain-Wide Delegation of Authority."
      } 
}

已经关注了https://developers.google.com/admin-sdk/directory/v1/guides/delegation

我正在使用该库并将其在laravel 5.7上运行:https://github.com/spatie/laravel-google-calendar

这可能是解决方法。请帮助。

php google-api google-calendar-api google-oauth2
1个回答
0
投票

当我使用Google Calendar API遇到同样​​的问题时,我首先收到您的问题的警报。看来我的答案实际上来自于有关如何添加范围的单独答案。

© www.soinside.com 2019 - 2024. All rights reserved.