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

New Post: problems with Stream no events fired

$
0
0
 Thanks for your help i have tried that also, but no events fired, it looks like this now and still doesnt work

        var credentials = TwitterCredentials.CreateCredentials(accesstoken, accesssecret, consumerkey, consumersecret);

                               TwitterCredentials.ExecuteOperationWithCredentials(credentials, () =>
        {
       var us = Stream.CreateUserStream();
            us.StartStream();
            EventsRelatedWithTweetCreation(us);

        });



    private static void EventsRelatedWithTweetCreation(IUserStream us)
    {


        us.TweetCreatedByAnyone += (sender, args) =>
        {
            Console.WriteLine(args.Tweet);
        };


    }

Viewing all articles
Browse latest Browse all 4126

Trending Articles