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

New Post: 401 Unauthorized Access

$
0
0
Hi there,

I have read your code and you are currently trying to parse the result on your own because Search of tweet is not provided in 0.8.3.x.
Hopefully the 0.9 (development version) has such a feature and as the release draw nearer I would advise you to use it.

You can only download it from the Source Code download and find examples in Examplinvi as always.

Simple Example using 0.9:
var tweets = Search.SearchTweets("#tweetinvi");

foreach (var tweet in tweets)
{
       Console.WriteLine("{0}", tweet.Text);
}
Complex search example using 0.9:
TwitterCredentials.TokenCredentials = new TokenCredentials(
                ConfigurationManager.AppSettings["token_AccessToken"],
                ConfigurationManager.AppSettings["token_AccessTokenSecret"],
                ConfigurationManager.AppSettings["token_ConsumerKey"],
                ConfigurationManager.AppSettings["token_ConsumerSecret"]);

var searchParameter = Search.GenerateSearchTweetParameter("tweetinvi");

searchParameter.SetGeoCode(Geo.GenerateCoordinates(-122.398720, 37.781157), 1, DistanceMeasure.Miles);
searchParameter.Lang = Language.English;
searchParameter.SearchType = SearchResultType.Popular;
searchParameter.MaximumNumberOfResults = 100;
searchParameter.Until = new DateTime(2013, 12, 1);
searchParameter.SinceId = 399616835892781056;
searchParameter.MaxId = 405001488843284480;

var tweets = Search.SearchTweets(searchParameter);

foreach (var tweet in tweets)
{
    Console.WriteLine("{0}", tweet.Text);
}
Please let me know if this helps you.
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles