我正在做一个项目来识别用户是否是 Twitter 中的名人。有什么方法可以检查 Twitter 中的用户是否被验证为名人?我知道名人会在推特个人资料中用蓝色徽章来识别。但是我如何通过 Twitter API 检索信息并查看是否有蓝色徽章?
最佳答案
Each Twitter user object来自 /users/show
带有一个 verified
bool 字段。如果用户通过验证,则为true
;否则将为false
。
例如,来自 my Twitter profile 的典型响应可能看起来像:
{
"name": "John Feminella",
"screen_name": "jxxf",
# ...
"verified": true, # True if the user is verified, false otherwise.
# ...
}
关于twitter - 检查用户是否通过 twitter api 在 twitter 中验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26790699/