mix-it-up-api
Simplifies calling the devAPI of Mix It Up with TypeScript
This package makes it easier to call the devAPI of Mix It Up such as running a command using TypeScript. It wraps the popular web-request package, extending it with an interface for Mix It Up.
Examples
Get user data by username...
const client = ; clientusers ;
Send a message to the chat...
const client = ; clientchat ;
Run the requested command...
const client = ; clientcommands ;
Getting Started
Make sure you're running Node v13 and TypeScript 3.7 or higher...
$ node -v
v13.11.0
$ npm install -g typescript tsd
$ tsc -v
Version 3.7.5
Install the mix-it-up-api package and the typings definitions for Node.js...
$ npm install mix-it-up-api
$ tsd install node
Write some code...
; const client = ; clientusers ;
Save the above to a file (index.ts), build and run it!
$ tsc index.ts typings/node/node.d.ts --target es6 --module commonjs
$ node index.js
<!doctype html><html ...
To use the sample with your own account, do the following steps:
-
Head over to Streamloots: https://mixitupapp.com/#download
-
Install Mix it Up
-
Log in with your Mixer Account
-
Go to Services
-
Open the Developer API Panel and hit that "Enable" Button.
-
Call the devAPI from your code!
Special Thanks to SaviorXTanren for his work on the Chatbot and his Documentation of this devAPI over on GitHub.