Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best Twitter API wrapper/library for .NET? [closed]

Tags:

.net

twitter

api

I'm looking for a way to programatically generate a twitter feed for a .NET application. Any recommendations as to a good wrapper for the twitter api to ease the work?

Boaz

like image 347
Boaz Avatar asked Mar 26 '09 09:03

Boaz


People also ask

What library does Twitter use?

KTweet a Kotlin library that allows you to consume the Twitter API v2.

How do I get high access Twitter API?

All Twitter API access requires a developers account, which can be created quickly by signing up. Essential access will be available immediately, and Elevated access can be requested.

Does Twitter have a free API?

Twitter API access levels and versions The Twitter API v2 includes a few access levels to help you scale your usage on the platform. In general, new accounts can quickly sign up for free, Essential access. Should you want additional access, you may choose to apply for free Elevated access and beyond.

Does Twitter have an open API?

Twitter allows access to parts of our service via APIs to allow people to build software that integrates with Twitter, like a solution that helps a company respond to customer feedback on Twitter.


2 Answers

Microsoft.Owin.Security.Twitter for authentication + custom C# code with HttpClient and Json.NET

Something like:

using (var client = new HttpClient()) {     client.BaseAddress = new Uri("https://api.twitter.com/1.1/");     client.DefaultRequestHeaders.Authorization = authValue;     var response = await client.GetAsync("search/tweets.json");      if (response.IsSuccessStatusCode)     {         var json = await response.Content.ReadAsStringAsync();         var tweets = JsonConvert.DeserializeObject<Tweets>(json);     } } 

Good read:

  • Extending HttpClient with OAuth to Access Twitter (Feb, 2012)
  • Calling a Web API From a .NET Client (C#)
  • Official documentation: OAuth API, REST API, Streaming API
like image 121
Konstantin Tarkus Avatar answered Oct 06 '22 09:10

Konstantin Tarkus


TweetSharp looks like it should be a decent option as well.

like image 39
Scott Ivey Avatar answered Oct 06 '22 07:10

Scott Ivey