twitch-getter
v1.1.7
Published
Get data from twitch's own API
Downloads
8
Maintainers
Readme
Install
npm i twitch-getter
How to use
This package utilizes both Twitch's "New API" and "V5" API.
// Package allows you to choose between both the V5 api and New API
import { NewTwitchAPI, V5TwitchAPI } from 'newtwitchapi'
(async() => {
// twitchAPI NEEDS your twitch's clientID in order to work
const newTwitchApi = new NewTwitchAPI(client_id: string)
const response = await newTwitchApi.GetNewStreams({
language: "en"
});
// Do something with the response
})()