/SocialOpinion-Public

APIs written in C# that connect to the TwitterAPI

Primary LanguageC#MIT LicenseMIT

SocialOpinion-Public

APIs written in C# that connect to the NEW TwitterAPI

Provides support for the following endpoints:

  • Filtered Stream v2
  • Hide Replies v2
  • Recent Search v2
  • Tweet Lookup v2
  • User Lookup v2
  • Sampled Stream v2

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

Support for Labs APIs is available in the "feature/Labs" branch

  • Filtered Stream Client and Service Labs v1

  • Metrics Client and Service Labs v1

  • Recent Search Client and Service Labs v2

  • Tweets / Users Client and Service Labs v2

  • Sampled Stream Client and Service Labs v1

  • Hide Replies Client and Service Labs v2

Prerequisites

  • Twitter Developer Account
  • Twitter Developer Labs Setup (for Labs interfaces)
  • 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";

More documentation soon!