the-camp
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

the-camp

Client lib of the camp

Installation

$ pnpm add the-camp

Usage

import { TheCampClient } from 'the-camp';

async function main() {
	const theCampClient = new TheCampClient({
		id: process.env.ID!,
		password: process.env.PASSWORD!,
	});

	const { soldierId } = await theCampClient.registerSoldier({
		성분: '예비군인/훈련병',
		군종: '육군',
		이름: '홍길동',
		입영부대: '육군훈련소-논산',
		관계: '팬',
		생년월일: '2001-11-26',
		입영일: '2022-02-14',
		전화번호: '01094862564',
	});

	await theCampClient.sendLetter(soldierId, {
		작성자: '장지훈',
		제목: `내용은 곧 제목22`,
		내용: `제목은 곧 내용`,
	});
}
main();

/the-camp/

    Package Sidebar

    Install

    npm i the-camp

    Weekly Downloads

    3

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    486 kB

    Total Files

    381

    Last publish

    Collaborators

    • whitekiwi