开发者

What's a Good Twitter SDK for C#? [closed]

开发者 https://www.devze.com 2023-02-20 12:55 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

Can anyone recommend a good Twitter SDK for C# (preferably open source)?

I found several on places like codeplex such as NTwitter. But these are a few years old and Twitter recently changed the login to OAuth.

I'll be using it from a WinForms app, although I may want to integrate with WPF at some point in the future.

N开发者_如何学编程OTE: All I really need to do is post tweets programmatically. So if anyone has something simpler that allows this and supports OAuth, I'd be very interested in that.


CodePlex is your friend :)

I have used TweetSharp before with good success. http://tweetsharp.codeplex.com/


Try linqtotwitter.codeplex.com. It supports .Net 4.5, Windows 8, Windows Phone 8.


As I have written in this post, Tweetinvi is a C# Twitter API that allow you to very easily perform many operations on Twitter 1.1 REST and Stream API.

All I really need to do is post tweets programmatically. So if anyone has something simpler that allows this and supports OAuth, I'd be very interested in that.

I am suggesting this library to you as it has 3 level of abstraction divided in 3 different projects and you can decide how you want to use the API.

From Tweetinvi project :

IToken token = new Token("userKey", "userSecret", "consumerKey", "consumerSecret");
Tweet t = new Tweet("Hello world");
t.Publish(token);

From TwitterToken :

IToken token = new Token("userKey", "userSecret", "consumerKey", "consumerSecret");
token.ExecutePOSTQuery("https://api.twitter.com/1.1/statuses/update.json?status=helloTwitter");

You can even use the OAuth project that will create the WebRequest for you and you'll just have to parse the response sent from Twitter.

OAuthToken t = new OAuthToken("userKey", "userSecret", "consumerKey", "consumerSecret");
t.ExecuteQuery("https://api.twitter.com/1.1/statuses/update.json?status=Hello Twitter From OAuth", HttpMethod.POST, null);

Hope this help you decide.


This may help.

http://www.scribd.com/doc/19570670/C-Lab-Write-a-Simple-Twitter-Client-Using-the-Twitter-API

0

精彩评论

暂无评论...
验证码 换一张
取 消