有没有办法使用Twitter API计算特定用户的Twitter推文?

aro*_*n n 6 php api twitter

有没有人有任何想法或方法或代码(PHP)来查找使用Twitter API的特定用户的推文数量?

Ser*_*rge 6

有一种方法,你需要使用users/show资源,
你可以在这里找到文档 ,这里是一个输出示例

更准确地说,你正在寻找 statuses_count


这是从文档页面中截取的截断输出

{
"name": "Twitter API",
"profile_sidebar_border_color": "87bc44",
"profile_background_tile": false,
"profile_sidebar_fill_color": "e0ff92",
"location": "San Francisco, CA",
"profile_image_url": "http://a3.twimg.com/profile_images/689684365/api_normal.png",
"created_at": "Wed May 23 06:01:13 +0000 2007",
"profile_link_color": "0000ff",
"favourites_count": 2,
"url": "http://apiwiki.twitter.com",
"contributors_enabled": true,
"utc_offset": -28800,
"id": 6253282,
"profile_use_background_image": true,
"profile_text_color": "000000",
"protected": false,
"followers_count": 160752,
"lang": "en",
"verified": true,
"profile_background_color": "c1dfee",
"geo_enabled": true,
"notifications": false,
"description": "The Real Twitter API. I tweet about API changes, service issues and happily answer questions about Twitter and our API. Don't get an answer? It's on my website.",
"time_zone": "Pacific Time (US & Canada)",
"friends_count": 19,
"statuses_count": 1858,
[...]
Run Code Online (Sandbox Code Playgroud)