line-api-cli
Version:
LINE API CLIs for Node.js
18 lines (15 loc) • 492 B
JavaScript
import LINETvRequest from './linetv-request';
export default class LINETvListModulesRequest extends LINETvRequest {
constructor(options) {
super(options);
this.endpoint = `${this.endpoint}/curation`;
}
/**
* @param {number} channelId
* @param {string} countryCode
* @return {AxiosResponse<LINETvListModulesResponseData>}
*/
send(channelId, countryCode) {
return this.axios.get(`${this.endpoint}/list?lineChannelId=${channelId}&country=${countryCode}`);
}
}