UNPKG

node-ttv

Version:

A Node.js wrapper for Twitch.tv's helix API.

30 lines 1.08 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Scopes = exports.OAuth = exports.Twitch = void 0; var OAuth_1 = __importDefault(require("./authentication/OAuth")); exports.OAuth = OAuth_1.default; var Scopes_1 = __importDefault(require("./authentication/Scopes")); exports.Scopes = Scopes_1.default; var Helix_1 = __importDefault(require("./helix/Helix")); /** * Your registered Twitch application. */ var Twitch = /** @class */ (function () { /** * Handle a registered Twitch application * @param CLIENT_ID Your registered application's client id * @param SECRET Your registered application's secret */ function Twitch(CLIENT_ID, SECRET) { this.oauth = new OAuth_1.default(CLIENT_ID, SECRET); this.helix = new Helix_1.default(this.oauth); } return Twitch; }()); exports.Twitch = Twitch; exports.default = Twitch; ; //# sourceMappingURL=node-ttv.js.map