Skip to content

Instantly share code, notes, and snippets.

@Dynyx
Created June 4, 2012 13:11
Show Gist options
  • Save Dynyx/2868278 to your computer and use it in GitHub Desktop.
Save Dynyx/2868278 to your computer and use it in GitHub Desktop.
Tweet using Twitter API
// Requires the use of the Twitterer Nuget package
public static RequestResult Tweet(string message)
{
var authTokens = new OAuthTokens
{
AccessToken = ConfigurationManager.AppSettings["AccessToken"],
AccessTokenSecret = ConfigurationManager.AppSettings["AccessTokenSecret"],
ConsumerKey = ConfigurationManager.AppSettings["ConsumerKey"],
ConsumerSecret = ConfigurationManager.AppSettings["ConsumerSecret"]
};
return TwitterStatus.Update(authTokens, message).Result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment