Awesome
SocialOpinion-Public
APIs written in C# that connect to the NEW TwitterAPI (https://developer.twitter.com/en/docs/api-reference-index#twitter-api-v2)
Provides support for the following endpoints:
Tweets
- Filtered Stream
- Hide Replies
- Likes / Likes Lookup
- Retweets
- Sampled Stream
- Recent Search
- Timelines
- Tweet Counts
- Tweet Lookup
Users
Spaces
Prerequisites
- Twitter Developer Account
- Twitter Project and Application in the new Twitter Developer Portal
- Obtain your application key and secret from the Twitter Developer Admin screen
- App.config file in SocialOpinionConsole Project with Application Keys and Secrets from the Twitter Developer Admin screen
SocialOpinionAPI
Contains the C# APIs
SocialOpinionConsole
Contains examples of how to use the APIs
The following configuration file must exist to ensure the test project works:
App.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConsumerKey" value="key here"/>
<add key="ConsumerSecret" value="secret here"/>
<add key="AccessToken" value="access token here"/>
<add key="AccessTokenSecret" value="access token secret here"/>
</appSettings>
</configuration>
Alternatively, you can simply assign them in the Program.cs file here as string values and bypass loading them from the XML file
string _ConsumerKey = "key";
string _ConsumerSecret = "secret";
string _AccessToken = "access token";
string _AccessTokenSecret = "access token secret";