[go: up one dir, main page]

Skip to content

jamiemaguiredotnet/SocialOpinion-Public

Repository files navigation

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 v2
  • Hide Replies v2
  • Likes / Likes Lookup v2
  • Retweets v2
  • Sampled Stream v2
  • Recent Search v2
  • Timelines v2
  • Tweet Counts v2
  • Tweet Lookup v2

Users

  • Blocks v2
  • Follows Lookup v2
  • Mutes v2
  • User Lookup v2

Spaces

  • Spaces Lookup v2
  • Search Spaces 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

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!

About

APIs written in C# that connect to the TwitterAPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages