Skip to content

WhiteKiwi/the-camp

Repository files navigation

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();

About

Client lib of the camp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published