【发布时间】:2021-02-09 02:47:54
【问题描述】:
还有发现文件: https://alertcenter.googleapis.com/$discovery/rest?version=v1beta1
“警报中心 API”的范围是 https://www.googleapis.com/auth/apps.alerts
但是,当我使用此范围时,我收到错误消息:
Authorization Error
Error 400: invalid_scope
Some requested scopes cannot be shown: [https://www.googleapis.com/auth/apps.alerts]
范围是否发生了变化,文档是否已过时?访问此 API 的任何其他选项?
【问题讨论】:
-
嗨!您能否分享一个没有敏感数据的示例代码,我可以重现该代码以获得该错误消息?谢谢 ! :D
-
嗨@mateorandwolf,我在谷歌路径游乐场测试了范围。我还没有写代码。 developers.google.com/oauthplayground。范围不在列表中,但您可以将其添加到列表末尾的文本字段中
标签: google-admin-sdk google-alerts google-alert-center-api