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

New Post: Best practice for keeping streams alive

$
0
0
Hi,

Would you please be more precise on what you are trying to do.
To add credentials in Tweetinvi just use the following method with your credentials.
TwitterCredentials.SetCredentials("Access_Token", "Access_Token_Secret", "Consumer_Key", "Consumer_Secret");
When this is done you can access all the Twitter API from Tweetinvi and consequently the streaming API as followed.
var sampleStream = Stream.CreateSampleStream();
sampleStream.TweetReceived += (sender, args) => { Console.WriteLine(args.Tweet.Text); };
sampleStream.StartStream();
Please read the documentation for the examples.
If you need more complex access to the Streaming API please let me know and I will help you.

Regards,
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles