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
KTweet a Kotlin library that allows you to consume the Twitter API v2.
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.
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.
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.
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:
TweetSharp looks like it should be a decent option as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With