UNPKG

@akomalabs/kemono

Version:

A production-grade TypeScript API wrapper for the Kemono/Coomer platforms

26 lines 602 B
/** * Creators API endpoints */ export class CreatorsApi { client; constructor(client) { this.client = client; } /** * List all creators * @returns Array of creators */ async listAll() { return this.client.get('/creators.txt'); } /** * Get a creator's profile * @param service Platform service * @param creatorId Creator's ID * @returns Creator profile */ async getProfile(service, creatorId) { return this.client.get(`/${service}/user/${creatorId}/profile`); } } //# sourceMappingURL=creators.js.map