Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hello World to Twitter from C#

Tags:

c#

oauth

twitter

A few days ago, I posted this question and this question asking about how to post "Hello World" to twitter. I've gotten helpful responses, which have propelled me further along, but I'm still lost.

I need to use OAuth because (as I read it) using username and password is going to be deprecated soon.

I need an example as simple as updating the status with the string constant 'Hello World!'.

My client is specifying that I must use C#.

like image 620
Phillip Senn Avatar asked Nov 27 '22 06:11

Phillip Senn


1 Answers

Definitely use Linq2Twitter -

http://linqtotwitter.codeplex.com/

It's UpdateStatus method has 11 overloads - the whole implementation is really nice. So you're example would be:

var tweet = twitterCtx.UpdateStatus("Hello world");
like image 146
philiphobgen Avatar answered Dec 04 '22 03:12

philiphobgen