gpt4 book ai didi

php - 有什么方法可以使用 Twitter API 计算特定用户的推特推文?

转载 作者:可可西里 更新时间:2023-11-01 13:20:13 25 4
gpt4 key购买 nike

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

最佳答案

有一个办法,需要用到users/show资源,
你可以找到文档 here这是一个output example

更准确地说,您正在寻找 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,
[...]

关于php - 有什么方法可以使用 Twitter API 计算特定用户的推特推文?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4876451/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com