Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

How to use GetUserTweets

$
0
0

Thanks for creating this package - very handy :)

I am trying to change the user of the tweets returned in uTweet.LatestTweet.cshtml and am failing.

I have changed the file to this (where twitteruser is the account I want to display tweets from):

@{
    try
    {
    var t = new uTweets.Tweets();
    var result = t.GetUserTweets(twitteruser);
   
    if (result != null)
    {
        @Html.Raw(result.First().TextAsHtml)
    }
    }
    catch (Exception ex)
    {
        @ex.ToString();
    }
}

I'm not sure how to use the (string screenName) with GetUserTweets .


Viewing all articles
Browse latest Browse all 72689


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