OctoCore is a C# library intended for Twitch streamers. It allows them to create advanced apps based on six well-known social networking sites wrapped in one big THING. Those APIs are:
- Twitch
- Discord
- PayPal
-
Add reference to OctoCore.dll and Newtonsoft.Json.dll.
-
Add using statement.
using OctoCore;
- Initialize Twitch.Credentials and Twitch.Client:
Credentials apiCredentials = new Credentials();
apiCredentials.ApplicationID = "your_application_ID_here";
apiCredentials.Secret = "your_application_secret_here";
apiCredentials.RedirectURI = "your_application_redirect_url_here"; //currently accepting http://localhost only
Client twitchClient = new Client(apiCredentials);
- When initialized, twitchClient will attempt to open an authorization link in a default browser.
- If user clicks Agree, library will return success page.
- If user clicks Cancel, library will return failure page and close it's local web server.
- send and receive chat messages, commands, whispers
- get newest follows, subs, hosts
- read user data
- send new tweets
- search for tweets
- send money to other people
- check your account bilance