Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@marcduiker
Created March 3, 2019 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcduiker/9c1266cdc2f6998e67dcf911928b67ef to your computer and use it in GitHub Desktop.
Save marcduiker/9c1266cdc2f6998e67dcf911928b67ef to your computer and use it in GitHub Desktop.
Post a new Tweet using the Tweetinvi client library.
var creds = new TwitterCredentials(
consumerApiKey,
consumerApiSecret,
accessToken,
accessTokenSecret);
var tweetMessage = CreateMessage(newRelease);
var tweet = Auth.ExecuteOperationWithCredentials(creds, () =>
{
return Tweet.PublishTweet(tweetMessage);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment