Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: How to get the latest Tweet ID on twitter

$
0
0
As discussed in https://tweetinvi.codeplex.com/discussions/554135

Here are the solutions you could use:
// From any account if you do not already have a sample stream running on your machine + accountvar stream = Stream.CreateSampleStream();
stream.TweetReceived += (sender, args) =>
{
    var lastPublishedTweetId = args.Tweet.Id;
    stream.StopStream();
};

// From another test account so that is does not "corrupt" the account profilevar tweet = Tweet.PublishTweet(Guid.NewGuid().ToString());
var lastPublishedTweetId = tweet.Id;
tweet.Destroy();
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>