myanimelist-wrapper
Version:
A comprehensive TypeScript wrapper for the Jikan API v4 (unofficial MyAnimeList API)
31 lines • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProducersEndpoint = void 0;
class ProducersEndpoint {
constructor(client) {
this.client = client;
}
/**
* Get producer by ID
* @param id Producer ID
* @param page Page number
* @param limit Results per page
* @returns Promise with producer data
*/
async getById(id, page, limit) {
return this.client.request(`/producers/${id}`, {
page,
limit,
});
}
/**
* Get all producers
* @param params Query parameters
* @returns Promise with producers data
*/
async getAll(params) {
return this.client.request("/producers", params);
}
}
exports.ProducersEndpoint = ProducersEndpoint;
//# sourceMappingURL=producers.js.map