我曾经通过这个URL获取用户图像
https://plus.google.com/s2/photos/profile/(user_id)?sz=150
但现在我得到的是404错误或没有图像.我知道谷歌已经改变了它的政策和连接方式,并允许其他人获取信息,但我没有做任何事情来达到与上述相同的结果.
注意:我不能在这里使用身份验证,因为我向其他用户显示用户的图像根本没有连接.
或者以其他方式,用户可能不是来自Google登录,但我只需向其他Google用户展示图片.
任何帮助将非常感谢!!!
编辑: 我已通过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."
}
}
Run Code Online (Sandbox Code Playgroud)
编辑:我已经启用此功能,因为我已在我的网站中使用Google+登录,此处我附加了屏幕截图: