Skip to content

sorooshme/Twitch-New-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm i twitch-new-api

Basic Usage

This package is written in TypeScript, so you can use it in both js and ts.

All of the methods are self documented, providing a good developer experience.

import { TwitchApi, TwitchCredentials } from '../src';

const twitchCredentials: TwitchCredentials = {
  id: 'twitch.client.id',
  secret: 'twitch.client.secret',
};

const twitch = new TwitchApi(twitchCredentials);

(async () => {
  const user = await twitch.getUserByName(['mechiller']);
  const profilePicture = user[0].profile_image_url;
})();

Contribution

I made this package for my own usage, if you need something specific, please, make an issue or PR.

License - MIT

About

twitch-new-api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published