tweetinvi

Finding the tweetID of a tweet in tweetinvi

China☆狼群 提交于 2021-02-17 05:13:48
问题 I am relatively new to programming in C# (Learning on my own for a school project) and decided to try using TweetInvi to implement Twitter functionality. So far it's going good, got the authentication and publishing up and running, but I'm struggling to find out how to use the DestroyTweet() method. It, and many other methods takes a tweetID parameter, which I can't figure out of how to find for a specific tweet. Using the following code to publish a tweet, how can i find the tweetID of this

Finding the tweetID of a tweet in tweetinvi

风流意气都作罢 提交于 2021-02-17 05:13:11
问题 I am relatively new to programming in C# (Learning on my own for a school project) and decided to try using TweetInvi to implement Twitter functionality. So far it's going good, got the authentication and publishing up and running, but I'm struggling to find out how to use the DestroyTweet() method. It, and many other methods takes a tweetID parameter, which I can't figure out of how to find for a specific tweet. Using the following code to publish a tweet, how can i find the tweetID of this

Twitter: Error sending Direct message with quick reply buttons

这一生的挚爱 提交于 2019-12-14 04:03:31
问题 I need to send a Twitter DM with quick reply. I use Tweetinvi, that at the moment does not support quick replies, therefore I tried to alter the query in Tweetinvi code at the lovest possible level: just before it is sent to Twitter. If I send this (basic message) https://api.twitter.com/1.1/direct_messages/new.json?text=hello&user_id=999999999 It works When I send is this https://api.twitter.com/1.1/direct_messages/new.json?text=MessageToUserId&user_id=999999999&quick_reply&type=options

Twitter analytics data via Stream API using OAuth (access token)

蓝咒 提交于 2019-12-11 16:20:12
问题 I want the twitter analytics data, some values like: retweets, *followers, demographics and geographic data. I have Access Tokens for multiple users, and I want to access their data of Twitter Analytics. I have checked this thread too: C# console application Streaming API 1.1 + Oauth but my scenario is different, I don't want the data for a single user only, I have multiple users with their access tokens. How can I accomplish this task? I have seen their Rest API, it's not possible from it.

How to keep streaming continuously - Tweetinvi

。_饼干妹妹 提交于 2019-12-07 12:54:42
问题 I adapted the following code from one I found online. Works ok but is not running continuously and pulling in new tweets. What do I need to change? Help appreciated. private static void Stream_FilteredStreamExample() { SqlConnection conn = new SqlConnection(@"Data Source=********************"); conn.Open(); for (; ; ) { try { var stream = Stream.CreateFilteredStream(); //stream.AddLocation(Geo.GenerateLocation(-180, -90, 180, 90)); stream.AddTweetLanguageFilter(Language.English); stream

C# -> RaiseEvent in VB.Net [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-06 16:30:35
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . I am having fun with TweetInvi in VB.Net, unfornately I have issue with converting this code to VB.Net. I am still beginner and I was trying to get some information about RaiseEvent, but I couldn't do it. Here is code. I want to run this in button event: var stream = Stream.CreateFilteredStream();

How to keep streaming continuously - Tweetinvi

ε祈祈猫儿з 提交于 2019-12-05 21:35:54
I adapted the following code from one I found online. Works ok but is not running continuously and pulling in new tweets. What do I need to change? Help appreciated. private static void Stream_FilteredStreamExample() { SqlConnection conn = new SqlConnection(@"Data Source=********************"); conn.Open(); for (; ; ) { try { var stream = Stream.CreateFilteredStream(); //stream.AddLocation(Geo.GenerateLocation(-180, -90, 180, 90)); stream.AddTweetLanguageFilter(Language.English); stream.AddTrack("#TubeStrike"); var timer = Stopwatch.StartNew(); stream.MatchingTweetReceived += (sender, args) =>