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

New Post: How to publish tweets?

$
0
0
Hi,

Sorry for not responding earlier, I just did not see your message.
If you download the Source Code project you will find many examples on how to use Tweetinvi.

Now concerning your specific request. You can create a simple tweet by 2 different ways.
Use Tweet.Publish
ITweet t = new Tweet("Hello Tweetinvi!");
bool success =  t.Publish(token);
Console.WriteLine("Tweet has{0}been published", success ? " " : " not ");
Use TokenUser.PublishTweet
var tokenUser = new TokenUser(token);
tokenUser.PublishTweet("hello tweetinvi!");
Each of these examples use a Token which you need to create with your credentials.
IToken token = new Token("My Access token", "My Access token secret", "My Consumer key", "My Consumer secret");
Hope this helps.
Linvi

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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