确定 Twitter 个人资料具有默认图像 [英] Identify twitter profiles have default image
问题描述
全部
我想计算我的粉丝个人资料具有默认 Twitter 个人资料图片.(简而言之,不更改默认图片)例如
I want to count my followers profile having the default twitter profile image.(in short not changes default image) Ex.
这可能吗?怎么样?
提前致谢!
推荐答案
是的,这是可能的!
首先找出您的关注者 ID 列表:https://dev.twitter.com/docs/api/1/get/followers/ids
First find out your list of followers' IDs: https://dev.twitter.com/docs/api/1/get/followers/ids
然后查找您的关注者:https://dev.twitter.com/docs/api/1/get/users/lookup
如果关注者拥有默认个人资料图片,您将收到"default_profile_image":true
.
You'll receive "default_profile_image":true
for a follower if they have the default profile image.
例如,如果您使用 JSON 查询您自己的 Twitter 帐户:https://api.twitter.com/1/users/lookup.json?screen_name=ajaypatel_aj
For example if you query your own Twitter account using JSON: https://api.twitter.com/1/users/lookup.json?screen_name=ajaypatel_aj
你会看到:
"default_profile_image":false
或者使用 XML:https://api.twitter.com/1/users/lookup.xml?screen_name=ajaypatel_aj
你会看到:
<default_profile_image>false</default_profile_image>
这篇关于确定 Twitter 个人资料具有默认图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!