Questions tagged [node-twitter]

A node.js module for interacting with the Twitter API.

A node.js module for interacting with the Twitter API.

Link: https://www.npmjs.com/package/twitter

7 questions
2
votes
3 answers

How to stream tweets of one user using "follow"

I am trying to use the Twitter api to listen for tweets from one user (1234) twitterClient.stream('statuses/filter', { follow: 1234 }, (stream) => { stream.on('data', tweet => { console.log('tweet', tweet) }) stream.on('error',…
Noah
  • 4,601
  • 9
  • 39
  • 52
2
votes
1 answer

Error 401 when tweets using node-twitter

I am using Twitter API by the package Twitter for Node.js. Right now I succeed reading tweets using stream, but I failed to write tweets. I got 401 error which means Unauthorized according to Twitter Developer Documentation. The code is here: const…
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
0
votes
0 answers

Is there any way to retrieve your own tweet organic_metrics and at the same time the referenced_tweets without theirs Twiter API V2

I am trying to request my own timeline tweets organic_metrics by adding them on the tweet.fields. By doing so, I retrieve them as expected. The problem is that if I add the expansions referenced_tweets.id,referenced_tweets.id.author_id to the query…
reymon359
  • 1,240
  • 2
  • 11
  • 34
0
votes
1 answer

Making a Twitter Bot and keep getting Error Code 453

I'm trying to make a Twitter bot and using this article as my guide. I have: Signed up for a Twitter Developer account and created an App Changed the User authentication settings to the following: First screen of user authentication…
0
votes
1 answer

Do/while loop in node.js to get total tweet counts only runs once

When making a get request to twitter api, it returns all the tweets in the array tweets.statuses. We can find the total tweet counts using tweets.statuses.length. In one request it can only return a maximum of 100 tweets even if there are 1000s of…
Asad Feroz Ali
  • 362
  • 5
  • 15
0
votes
1 answer

How can i use node packages in claudiajs for use it in aws lambda

How can I use node packages in claudiajs. I tried to use node-twitter-api and node-twitter in it but getting blank response. promise will require or not i have no idea about it in lambda. if any one has any examples or documents that may have…
0
votes
1 answer

Node: Twitter search api request issue

I am observing the wrong output while hitting Twitter search api and i am using this npm module. I am passing since, from, until parameters to the api, but i am not getting any tweet where as generating the cURL request from the Twitter's oauth…
Gaurav Gupta
  • 4,586
  • 4
  • 39
  • 72