Tweet some text on twitter using C#

Mar 3, 2015 at 9:01 AM
I have an web application, in which i have to post text on user's twitter account with use of their username and password.
After performing R&D i able to find out the below code using

var twitter = FluentTwitter.CreateRequest()
        .AuthenticateAs("USERNAME", "PASSWORD")
    .Statuses().Update("testing, one, two, three!")
       .AsJson();

        var response = twitter.Request();

and also find document for XAuth (TEXT). But XAuth supports only window based and mobile application.

How should i do it with tweetinvi or any other source.
Please help.
Coordinator
Mar 6, 2015 at 4:51 PM
I was not aware the the Authentication with Username and Password was still available to access the Twitter API.

Anyway, in Tweetinvi you just specify the OAuth credentials and then use the Tweet class as demonstrated below:
TwitterCredentials.SetCredentials("Access_Token", "Access_Token_Secret", "Consumer_Key", "Consumer_Secret");
var tweet = Tweet.PublishTweet("testing, one, two, three!");
Regards,
Linvi
Marked as answer by linvi on 3/9/2015 at 6:21 PM