kick-sdk
Version:
NodeJS lightweight SDK for Kick.com API.
23 lines (22 loc) • 687 B
JavaScript
import { PublicKeyService } from './publicKey';
import { CategoryService } from '../category/category';
import { UserService } from '../user/user';
import { ChannelService } from '../channel/channel';
import { ChatService } from '../chat/chat';
export class KickClient {
token;
publicKey;
category;
user;
channel;
chat;
constructor(options) {
this.token = options.token;
this.publicKey = new PublicKeyService(this);
this.category = new CategoryService(this);
this.user = new UserService(this);
this.channel = new ChannelService(this);
this.chat = new ChatService(this);
}
getToken = () => this.token;
}