How to get the tweet author ?

May 20, 2014 at 11:34 PM
Hi all,
i'm a little bit new on this forum and use tweetinvi (great job, Linvi).
so, i use this kind of code :
        Dim searchParameter = Search.GenerateSearchTweetParameter(TextBox1.Text)
        'searchParameter.SetGeoCode(48.856614, 2.3522219000000177, 100, Core.Enum.DistanceMeasure.Kilometers)
        searchParameter.Lang = Core.Enum.Language.French
        Dim tweets = Search.SearchTweets(searchParameter)
        For Each seltweet In tweets
            'RichTextBox1.AppendText("- ID username       : " & seltweet. ????  & vbCrLf)
            RichTextBox1.AppendText("- ID tweet       : " & seltweet.IdStr & vbCrLf)
            RichTextBox1.AppendText("- message      : " & seltweet.Text & vbCrLf)
            RichTextBox1.AppendText("- ReplyScName  : " & seltweet.InReplyToScreenName & vbCrLf)
            RichTextBox1.AppendText("- ReplyToUserId : " & seltweet.InReplyToUserIdStr & vbCrLf)
            RichTextBox1.AppendText("- date creat   : " & seltweet.CreatedAt & vbCrLf)
            RichTextBox1.AppendText("- ReplyToTweetID : " & seltweet.InReplyToStatusIdStr & vbCrLf)
            RichTextBox1.AppendText("- is a Retweet ? : " & seltweet.IsRetweet & vbCrLf)

            RichTextBox1.AppendText("-------------" & vbCrLf)
        Next
As you can see, work on VB 2010.
All work fine, but how to get the screenname of the author of tweet ?
Thank you
Patrick
May 21, 2014 at 12:13 AM
Hi,

You can get it from ITweet.Creator.ScreenName.

Linvi
Marked as answer by linvi on 5/21/2014 at 5:29 AM
May 21, 2014 at 10:07 AM
Hi Linvi,
Humm!! Indeed.
Thank you for your quick reply.
Soon will have other questions ;)

Patrick