17 lines
490 B
TypeScript
17 lines
490 B
TypeScript
import { BaseEndpoint } from './base';
|
|
import { Certifications } from '../types/certification';
|
|
|
|
export class CertificationEndpoint extends BaseEndpoint {
|
|
constructor(protected readonly accessToken: string) {
|
|
super(accessToken);
|
|
}
|
|
|
|
async movies(): Promise<Certifications> {
|
|
return await this.api.get<Certifications>('/certification/movie/list');
|
|
}
|
|
|
|
async tvShows(): Promise<Certifications> {
|
|
return await this.api.get<Certifications>('/certification/tv/list');
|
|
}
|
|
}
|