UNPKG

@intocode-io/line-api-cli

Version:
21 lines (18 loc) 567 B
import LINETvRequest from './linetv-request'; export default class LINETvGetSpotlightRequest extends LINETvRequest { constructor(options) { super(options); this.endpoint = `${this.endpoint}/curation`; } /** * @param {number} channelId * @param {string} countryCode * @param {string} moduleName * @return {AxiosResponse<LINETvGetSpotlightResponseData>} */ send(channelId, countryCode, moduleName) { return this.axios.get( `${this.endpoint}?lineChannelId=${channelId}&country=${countryCode}&module=${moduleName}` ); } }