0.0.1 • Published 4 years ago

dank-twitch-api v0.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

Dank-Twitch-Api

A library for using the twitch helix api

example:

import Client from "dank-twitch-api";

const main = async (): Promise<void> => {
  const client = new Client({
    clientId: "my-client-id",
    clientSecret: "my-client-secret",
  });
  try {
    const user = await client.getUser("destiny");
    console.log(user);
    const followers = await user.getFollowers(200);
    console.log(followers);
  } catch (error) {
    console.log("Error", error, error?.response?.body);
  }
};

main();
0.0.1

4 years ago

0.4.0

4 years ago

0.3.5

4 years ago