-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
posting replies to tweets #6
Comments
hey @aeikenberry, I just ran your exact code above and tweeted at you without problems using the current version of twit. Try |
Thanks for the reply. I'm able to @Someone, but the in_reply_to_status_id
|
if you want to get a //grab my mentions
T.get('statuses/mentions', function (err, reply) {
if (err) return console.log('error:', err)
//tweet will be posted as a reply to the last mention I received
var id = reply[0].id
var opts = {
in_reply_to_status_id: id
, status: '@tolga_tezel Great tweet, that.'
}
//tweet it
T.post('statuses/update', opts, function(err, reply) {
if (err) return console.log('error:', err)
console.log('reply:', reply)
});
}) |
I apologize if I'm doing this way wrong, but when I do this, I do not get an error, however, in the reply, Are you seeing this in your reply's reply? var opts = { in_reply_to_status_id: 207161603534229500
, status: '@JonaW1995 Great one.' }
T.post('statuses/update', opts , function(err, reply) {
console.log(reply);
console.log(err);
}); Looking at my reply, |
Okay so I just ran a lookup on the id you posted above, and it 404'ed (a tweet with that id does not exist). So you're using the wrong T.get('statuses/show/207161603534229500', function (err, reply) {
if (err) return console.log('error:', err)
console.log(reply)
/*
reply looks like
error: { statusCode: 404,
data: '{"request":"\\/1\\/statuses\\/show\\/207161603534229500.json","error":"No status found with that ID."}',
twitterReply: '{"request":"\\/1\\/statuses\\/show\\/207161603534229500.json","error":"No status found with that ID."}' }
*/
}) |
Hey sir, I was just able to do it successfully by using the But, i've tested using the string version, and it works well. Thanks for the help! |
No worries :) |
Hey sir, I'm trying to make replies, i've tried putting in_reply_to_status_id in the params, but it doesn't seem to be working.
My post looks like this:
Any ideas?
The text was updated successfully, but these errors were encountered: