Home

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

Users

Spaces

Prerequisites

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";

More documentation soon!