UNPKG

@ingestkorea/client-sens

Version:

INGESTKOREA SDK Naver Cloud Platform SENS Client for Node.js.

27 lines (26 loc) 1.05 kB
import { SensCommand } from "../models"; import { serializeIngestkorea_restJson_ListAlimtalkChannelsCommand, deserializeIngestkorea_restJson_ListAlimtalkChannelsCommand, } from "../protocols/ListAlimtalkChannels"; import { IngestkoreaError } from "@ingestkorea/util-error-handler"; export class ListAlimtalkChannelsCommand extends SensCommand { constructor(input) { super(input); this.input = { ...input, }; } async serialize(input, config) { if (!config.serviceId.kakao) throw new IngestkoreaError({ code: 400, type: "Bad Request", message: "Invalid Params", description: "Please Check Kakao ServiceId", }); let request = await serializeIngestkorea_restJson_ListAlimtalkChannelsCommand(input, config); return request; } async deserialize(response) { let output = await deserializeIngestkorea_restJson_ListAlimtalkChannelsCommand(response); return output; } }