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()
.Statuses().Update("testing, one, two, three!")
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.
Mar 6, 2015 at 5: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!");