gpt4 book ai didi

ios - 谷歌+ :Get friends list (HTTP 403 forbidden)

转载 作者:行者123 更新时间:2023-12-01 19:06:52 26 4
gpt4 key购买 nike

我正在使用 'Google+ Sign-In'在 iOS PhoneGap 应用程序中。我正在获取除 friend 列表之外的用户个人资料详细信息。我试过这个
https://www.googleapis.com/plus/v1/people/me/people/visible?key={apikey}
但我收到以下错误:

{
"error": {`enter code here`
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Forbidden"
}
],
"code": 403,
"message": "Access Not Configured"
}
}

我该如何解决这个问题?请提出解决方案。

谢谢

最佳答案

看起来您正在使用一个简单的 API key 。您需要首先使用 Google+ 登录授权用户使用 Google+ API,如 iOS documentation for Google+ 中所述。 .

如果您正在登录用户并获得访问 token ,则应在 calling the API using the credentials you have received after the user authorizes your app 时传递访问 token 而不是简单的 API key 。 .

关于ios - 谷歌+ :Get friends list (HTTP 403 forbidden),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19136223/

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