I am trying to monitor all tweets and retweets made my a single user on twitter. I am trying to accomplish this using the Rest API app on splunk. I have been using GET statueses/user_timeline
from the twitter documentation in order to accomplish this however, I am getting nothing from twitter and I do not have any idea why. I can stream the most recent most recent tweet made by a user using POST statuses/filter
however, it only takes the tweets and turns it to a event if a user tweets @<account name>
followed by there messages. Is there any possible way to get both tweets and retweets from twitter. Or do I have to resort to coding something that can accomplish this.
Hi,
In URL argument you pass the twitterId of the user as below. You can get twitterId from http://gettwitterid.com/ by passing Twitter user name. This way it worked for me.
follow=359714389^stall_warnings=true
I'm pretty sure you can use the search/tweets endpoint
And then pass in a query string to narrow to 1 user and use the since_id parameter to get historic tweets (note , twitter will rate limit how many tweets you can pull back, read their docs.)
Fields from above :
Endpoint URL : https://api.twitter.com/1.1/search/tweets.json
URL arguments : q=from:someuserhandle,since_id=24012619984051000,result_type=mixed
It is not working on my end. Even when I switch to Authentication Type to oauth1 and enter in my keys and secret. Thanks but I think I will stick with Get User
. The only thing I think I may have messed up is the url argument.
I recently got this working with GET user
however, it only streams the most recent tweets and retweets.