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

New Post: Posting Tweets(Beginner)

$
0
0
As i am totally new to the twitter api scene, i did some research and started on using Tweetinvi API. So currently my progress is here
private void Form5_Load(object sender, EventArgs e)
        {
            TwitterCredentials.SetCredentials
                ( Access_Token, Access_Token_Secret, Consumer_Key, Consumer_Secret );
            TwitterCredentials.ApplicationCredentials = TwitterCredentials.CreateCredentials
                (Access_Token, Access_Token_Secret, Consumer_Key, Consumer_Secret);
            var user = User.GetLoggedUser(); 
        }

        private void updateButton_Click(object sender, EventArgs e)
        {

            var tweet = Tweet.PublishTweet(mainRichTextBox.Text);
        }
with the credentials set in a private string.

My error is that when i press the update button, VS2010 throws the error "The type initializer for 'Tweetinvi.Tweet' threw an exception."

any direction to the proper path would be much appreciated

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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