in src/endpoints/ShowsEndpoints.ts [8:18]
public async get(idOrIds: string | string[], market: Market) {
if (typeof idOrIds === 'string') {
const params = this.paramsFor({ market })
return this.getRequest<Show>(`shows/${idOrIds}${params}`);
}
// TODO: only returns 50, validate here
const params = this.paramsFor({ ids: idOrIds, market });
const response = await this.getRequest<Shows>(`shows${params}`);
return response.shows;
}