我正在尝试检查 Twitter 中的用户是否使用默认图像配置文件。我在API中发现了这个link ,它解释了存在一个 default_profile_image boolean 字段,它定义用户是否使用默认图片。不过我没有找到这张default_profile_image图片在哪个类可以找到。有什么想法吗?
我发现所有默认图片都有以下网址拼写错误:
https://abs.twimg.com/sticky/default_profile_images/default_profile_2_normal.png
https://abs.twimg.com/sticky/default_profile_images/default_profile_4_bigger.png
所以,我可以检查图像网址名称。如何检查用户url图像是否包含路径子字符串https://abs.twimg.com/sticky/default_profile_images ?
最佳答案
用户方法isDefaultProfileImage()。
/**
* Tests if the user has not uploaded their own avatar
*
* @return if the user has not uploaded their own avatar
*/
boolean isDefaultProfileImage();
关于java - Twitter 用户中的default_profile_image,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23424448/