Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Setting Up

const { Twitch } = require("@elara-services/twitch");
const twitch = new Twitch("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET");

GET: User(s)

const res = await twitch.user([ "tfue" ]); // This can be either their login_name or their user ID 
if (!res.status) return res.message; // When 'status' is faise message is always provided.
console.log(res); // Returns a 'data' field with an array of found user(s)

GET: Stream(s) by User(s)

const res = await twitch.stream([ "tfue" ]); // This can be either their login_name or their user ID 
if (!res.status) return res.message; // When 'status' is faise message is always provided.
console.log(res); // Returns a 'data' field with an array of found user(s)

Need support?

Support Server

Releases

Packages

Contributors

Languages