jikan-api.js
Version:
A modern TypeScript wrapper for the Jikan API - the unofficial MyAnimeList API
25 lines • 701 B
JavaScript
export class Characters {
client;
constructor(client) {
this.client = client;
}
getCharacterByFullId(id) {
return this.client.get(`/characters/${id}/full`);
}
getCharacterById(id) {
return this.client.get(`/characters/${id}`);
}
getCharacterAnime(id) {
return this.client.get(`/characters/${id}/anime`);
}
getCharacterManga(id) {
return this.client.get(`/characters/${id}/manga`);
}
getCharacterVoices(id) {
return this.client.get(`/characters/${id}/voices`);
}
getCharacterPictures(id) {
return this.client.get(`/characters/${id}/pictures`);
}
}
//# sourceMappingURL=characters.js.map