我曾经通过这个 URL 获取用户图像
https://plus.google.com/s2/photos/profile/(user_id)?sz=150
但现在我得到的只是 404 错误或没有图像。我知道谷歌已经改变了它的政策和连接方式,并允许其他人获取信息,但我没有达到与上述相同的结果。
注意:我不能在这里使用身份验证的东西,因为我正在向其他根本没有连接的用户显示用户的图像。
或者以其他方式,用户可能不是来自谷歌登录,但我只需要显示其他谷歌用户图像。
任何帮助将不胜感激!!!
编辑: 我已经检查了 people.get 方法
https://www.googleapis.com/plus/v1/people/11595...3592320?key=AIzaSyCkdmtNN1XDg....EpepOIIs
但我收到错误消息
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
编辑:我已经启用了这个,因为我已经在我的网站中使用 Google+ 登录,这里我附上截图: