我正在尝试创建一个包含有关新推文的通知的不和谐机器人。我正在使用T.stream('statuses/filter', { follow : ['798934987978510337'] });它,但它也显示提及。我只能从带有 twit 的用户那里获得推文吗?
                    
                    
                2 回答
                            不负相思意
                            
                                
                            
                        
                        
                                                
                    TA贡献1777条经验 获得超10个赞
以下代码对我有用。参考https://twittercommunity.com/t/only-receive-latest-tweet-from-specific-user-twit-npm/151478
var twitParams =
{
exclude_replies: false,
count: 1,
screen_name: "your screen name excluding @"
}
T.get("statuses/user_timeline", twitParams, function(err, data, response) {
console.log(data);
});
添加回答
举报
0/150
	提交
		取消
	