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

New Post: More tweets with Search

$
0
0
Here's my code

using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
using Tweetinvi;
using Tweetinvi.Core.Extensions;
using Tweetinvi.Core.Interfaces.oAuth;
using Tweetinvi.Core.Interfaces.Streaminvi;
using Tweetinvi.Json;
using SavedSearch = Tweetinvi.SavedSearch;
using Stream = Tweetinvi.Stream;







namespace TwitterClient
{
public partial class Home : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {


        TwitterCredentials.SetCredentials("xxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxx", "xxxxxxxxxxxxI");





        var tweets = Search.SearchTweets("Life");

        var firstTweet = tweets.First();

        resultlbl.Text = firstTweet.ToString();

        var tweets2 = Search.SearchTweets("Me");
        var secondTweet = tweets2.First();

        successlbl.Text = secondTweet.ToString();

        var tweets3 = Search.SearchTweets("Home");
        var thirdTweet = tweets3.First();

        newlbl.Text = thirdTweet.ToString();

    }
}
}

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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