如何检查Google用户的图片是默认还是上传? [英] How to check whether Google User's image is default or uploaded?
本文介绍了如何检查Google用户的图片是默认还是上传?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何检查用户的个人资料图片是默认还是上传到Google?
How do I check whether user's profile picture is default or uploaded in Google?
注意:从API获取用户详细信息时。
Note: When you get user details from APIs.
推荐答案
people.get 在图像对象中包含 isDefault
值。例如。如果您尝试 + Google
,您将获得;
people.get includes a isDefault
value in the image object. E.g. if you try it for +Google
you will get;
"image": {
"url": "https://lh4.googleusercontent.com/-v0soe-ievYE/AAAAAAAAAAI/AAAAAAACyas/yR1_yhwBcBA/photo.jpg?sz=50",
"isDefault": false
}
这篇关于如何检查Google用户的图片是默认还是上传?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文