Skip to content

andrehrferreira/twitchapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitch API

Twitch API implementation

Install

$ npm install @ehnosso/twitchapi

or

$ yarn add @ehnosso/twitchapi

Get Keys

Usage

const TwitchApi = require('@ehnosso/twitchapi');
const twitchApi = new TwitchApi('client_id', 'client_secret');

(async () => {
    const broadcaster = await twitchApi.getBroadcaster('ratoborrachudo');
    console.log("broadcaster", broadcaster);

    const channel_info = await twitchApi.getChannelInfo(broadcaster.id);
    console.log("channel_info", channel_info);

    const streams = await twitchApi.getStreamsStatus(broadcaster.id);
    console.log("streams", streams);

    const videos = await twitchApi.getVideos(broadcaster.id);
    console.log("videos", videos);
})();

About

Twitch API implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published