我正在尝试使用twit
npm模块编写一个回复推文的脚本。然而,每当我传递in_reply_to_status_id_str
或in_reply_to_status_id
时,似乎都会被忽略。不确定问题出在哪里?
T.get('search/tweets', { q: `golf since:2011-07-11`, count: 1 }).then(function (response) {
const userName = response.data.statuses[0].user.screen_name;
const tweetId = response.data.statuses[0].id_str;
T.post('statuses/update', { in_reply_to_status_id_str: tweetId, status: `@${userName}, I like golf too` }, (err, data, response) => {
resolve()
})
})
})