Gmail API- 元数据范围不支持 'q' 参数
Gmail API- Metadata scope does not support 'q' parameter
我正在尝试将 Gmail API 用于我的网络应用程序。我想要的是获取带有附件文件的邮件,我正在关注 this tutoral.
问题是当我使用 'q' 参数时,它 return 错误:Metadata scope does not support 'q' parameter
注意:我的授权范围是:
当范围中包含 https://www.googleapis.com/auth/gmail.metadata
时会出现错误消息。但是在您的范围内,它没有被使用。所以请再次确认以下几点。
- 如果在您的脚本中检索到刷新令牌,请将其删除并使用没有
https://www.googleapis.com/auth/gmail.metadata
的范围再次授权。
- 如果您使用 Google APIs Explorer,请删除 Google APIs Explorer at https://myaccount.google.com/permissions。
- 请登录并删除它。
完成上述操作后,请通过授权使用不带 https://www.googleapis.com/auth/gmail.metadata
的范围来使用端点的 API。
如果这对您没有用,我很抱歉。
我正在尝试将 Gmail API 用于我的网络应用程序。我想要的是获取带有附件文件的邮件,我正在关注 this tutoral.
问题是当我使用 'q' 参数时,它 return 错误:Metadata scope does not support 'q' parameter
注意:我的授权范围是:
当范围中包含 https://www.googleapis.com/auth/gmail.metadata
时会出现错误消息。但是在您的范围内,它没有被使用。所以请再次确认以下几点。
- 如果在您的脚本中检索到刷新令牌,请将其删除并使用没有
https://www.googleapis.com/auth/gmail.metadata
的范围再次授权。 - 如果您使用 Google APIs Explorer,请删除 Google APIs Explorer at https://myaccount.google.com/permissions。
- 请登录并删除它。
完成上述操作后,请通过授权使用不带 https://www.googleapis.com/auth/gmail.metadata
的范围来使用端点的 API。
如果这对您没有用,我很抱歉。