Hi Linvi,
I've extended your example as below, but I never get a valid response when trying to send a Tweet. There don't seem t be any errors anywhere, is there any way to track down additional information as to where the problem may lie?
I've tried this both with and without the SetCredentials call.
Many thanks,
Russell
I've extended your example as below, but I never get a valid response when trying to send a Tweet. There don't seem t be any errors anywhere, is there any way to track down additional information as to where the problem may lie?
I've tried this both with and without the SetCredentials call.
Many thanks,
Russell
// Consumer Key and Secret are specific to your application, you can get these on apps.twitter.com
var applicationCredentials =
CredentialsCreator.GenerateApplicationCredentials(oauth_consumer_key, oauth_consumer_secret);
var url = CredentialsCreator.GetAuthorizationURL(applicationCredentials);
// Open the URL to authenticate yourself on Twitter
Process.Start(url);
Console.WriteLine("Please enter the captcha : ");
var captcha = Console.ReadLine();
// Here are the new credentials!
var result = CredentialsCreator.GetCredentialsFromVerifierCode(captcha, applicationCredentials);
Console.WriteLine(result.AccessTokenSecret);
//TwitterCredentials.SetCredentials(applicationCredentials.AuthorizationKey, result.AccessTokenSecret, oauth_consumer_key, oauth_consumer_secret);
var tweet = Tweetinvi
.Tweet
.PublishTweet("test status " + Guid.NewGuid());
Console.WriteLine(tweet != null);