我正在做一个项目,以确定用户是否是Twitter中的名人.有没有办法检查Twitter中的用户是否被验证为名人?我知道名人会在推特个人资料中发现蓝色徽章.但是我如何通过Twitter API检索信息并查看是否有蓝色徽章?
Joh*_*lla 11
每个Twitter的用户对象从/users/show带有一个verified布尔型字段.如果用户被验证,它将是true; 否则会false.
例如,我的Twitter个人资料的典型回复可能如下所示:
{
"name": "John Feminella",
"screen_name": "jxxf",
# ...
"verified": true, # True if the user is verified, false otherwise.
# ...
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2330 次 |
| 最近记录: |