💬 7TV API
Unofficial 7TV API Wrapper for Node.js
⚙️ Installation
yarn add 7tv
npm install 7tv
📚 Usage
Get user data
const SevenTV = require("../lib");
const api = SevenTV();
async function test () {
const user = await api.fetchUser("username_here");
console.log(user);
}
Get user emotes
const SevenTV = require("../lib");
const api = SevenTV();
async function test () {
const emotes = await api.fetchUserEmotes("username_here");
console.log(emotes);
}
📦 Classes
Emote class
{
"id": String,
"name": String,
"owner_id": String,
"visibility": Number,
"tags": [String],
"height": [Number],
"width": [Number]
}
User class
{
"id": String,
"description": String,
"editor_ids": [String],
"display_name": String,
"twitch_id": String,
"profile_image_url": String,
"banned": Boolean,
"role": {
"name": String,
"color": String,
"position": Number
}
}
❤️
Made with Love by Sammwy, Donate at PayPal