gpt4 book ai didi

java - 无法从 Google Plus 访问用户的个人资料

转载 作者:搜寻专家 更新时间:2023-10-31 08:28:20 25 4
gpt4 key购买 nike

我正在使用 Scribe-Java 连接到 Google 并使用 OAuth2。我能够验证我的应用程序并获得用户的许可,但是当我尝试访问 userinfo 以外的任何内容时,我收到此异常。

403

{

"error": {

  "errors": [
{

"domain": "usageLimits",
"reason": "accessNotConfigured","message": "Access Not Configured"

}

],

"code": 403,

"message": "Access Not Configured"

}

}

我已将我的应用程序范围设置为 https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile 和要访问用户的个人资料,我正在使用此网址:

https://www.googleapis.com/plus/v1/people/{userid}/activities/public

你能告诉我我做错了什么吗?我需要在此处使用其他范围来访问配置文件吗?

最佳答案

1) 访问 Google API 控制台: http://code.google.com/apis/console

2) 转到“服务”页面。

3) 将 Google+ API 切换为开启以启用它

关于java - 无法从 Google Plus 访问用户的个人资料,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11082550/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com