Questions tagged [sttwitterapi]

60 questions
1
vote
1 answer

How to parse this JSONObject to get value inside the array from the twitter search API to obtain each tweets(name, body)?

Here is the response I get when I use search/tweets.api. {"statuses":[{"created_at":"Sun Jul 29 01:30:52 +0000 2018","id":1023380303648354304,"id_str":"1023380303648354304","text":"RT @FCFSeleccionCol: #FCFSub21 \n\nSemifinal \n\nEn marcha el juego…
Dr4ke the b4dass
  • 1,184
  • 2
  • 17
  • 40
1
vote
0 answers

how to automatically receive notifications based on a certain word using twitter stream api

i have a small app on which users can enter a specific keyword on a searchbox and when they click on 'search', a table containing tweets based on the keywords is displayed. what i want to further achieve with this exercise, is to be able to receive…
1
vote
1 answer

Retrieve live tweets from Twitter API

I am trying to pull LIVE tweets from selected user from Twitter users. ‘statuses/user_timeline.json’ API endpoint retrieving all the tweets of user but I wan't to filter only tweets which are currently LIVE. So is there any way to retrieve only LIVE…
KabirB
  • 191
  • 1
  • 2
  • 7
1
vote
0 answers

Twitter API - getting the Tweet ID when posting

When i post a tweet from the API at times the Tweet ID changes post execution. I am using Ruby's Twitter Gem @client = Twitter::REST::Client.new do |config| config.consumer_key = ENV['TWITTER_CONSUMER_KEY'] config.consumer_secret =…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
1
vote
0 answers

How to get search results older than 1 week on twitter

I am using twitter api by https://github.com/J7mbo/twitter-api-php to get search result from twitter. I am using until query string to get the past results $url = 'https://api.twitter.com/1.1/search/tweets.json'; $getfield…
beginner
  • 2,366
  • 4
  • 29
  • 53
1
vote
0 answers

Remove the twitter authorization during program running in C#

I am doing the tweets automatically from getting data from json url. But during the program execution after some seconds twitter always require to press the authorization button and then the program will continue. But now i want to place more than…
1
vote
0 answers

how to use "retweeted" field to check if tweet is retweeted

i pulled the tweets from timeline but it also show the retweeted tweets which starts with "RT @" how can i use "retweeted" field to check the tweet. if it was retweeted i will not print it. how can i use it in the code you see : $url =…
Ali
  • 67
  • 1
  • 7
1
vote
0 answers

OAuthTokenRequest using STTwitterAPI fails

Using following code to get OAuth token but it always fails with error Your credentials do not allow access to this resource I have taken following code sample from https://github.com/nst/STTwitter/blob/master/demo_cli/reverse_auth/main.m Even I…
Aamir
  • 16,329
  • 10
  • 59
  • 65
0
votes
0 answers

Can't add "list:xxxxxxxxxxx" StreamRule to StreamingClient of Twitter API v2

I can't add "list:XXXXXXXXXX" to my rules (I can add other rules though and they work). What I'm missing? import tweepy class TweetPrinter(tweepy.StreamingClient): def on_tweet(self, tweet): print(tweet) printer =…
0
votes
1 answer

Adding user list in the StreamingClient in Tweepy

I am writing the code for listening to the real-time Tweets from a specific list of users (more than 500 users). I read the Tweepy library documentation, and I could not find how to add the user list. Following is my code: import…
0
votes
1 answer

Unauthorized when attempting to post tweet api v1 (C#)

Morning all, I've not posted on SO for quite some time, but I need to ask the question, I’ve spent a day and a half trying to get this to work - it’s super frustrating considering I managed to implement v2 with posting a tweet in 2 - 3 hours but…
Tez Wingfield
  • 2,129
  • 5
  • 26
  • 46
0
votes
1 answer

Using Twit to post a video with a bot

function fridayNight(){ const videoPath = "C:\\GitHub\\DivasLive\\DivasLive\\nsync.mp4"; console.log("It's Friday night and I just Got Paid!"); var b64content = fs.readFileSync(videoPath, { encoding: 'base64' }); var mediaType =…
Pj Metz
  • 1
  • 2
0
votes
1 answer

Is there any possibilities to fetch the login details upto the given date in twitter using rest api's?

In my app, I want the login details of the user i.e when and where(IP address)the user is login into the account.
madhu
  • 19
  • 1
  • 2
0
votes
0 answers

Problem uploading image to twitter using bash script with twurl. Keep getting "code: 44" "media_ids parameter is invalid"

I am having an issue when trying to upload an image to twitter using a bash script and twurl. When I use a variable (which is storing the media_id of the image I want to upload) as the parameter for the "media_ids" that I appended to my status…
makoto
  • 23
  • 5
0
votes
1 answer

Does Twitter provide any api for reply a tweet or get list of replies

I want to integrate Twitter api in my application but I didn't find reply to a Tweet api in developers docs provided by Twitter. How can I get list of replies on a tweet or how can I reply to a tweet?