-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,52 @@ | ||
# the-camp | ||
Client lib of the camp | ||
|
||
|
||
# Installation | ||
```bash | ||
$ y add install the-camp | ||
``` | ||
|
||
# Usage | ||
|
||
```typescript | ||
import { TheCampClient } from 'the-camp'; | ||
|
||
async function main() { | ||
const theCampClient = new TheCampClient(); | ||
|
||
await theCampClient.login({ | ||
id: '[email protected]', | ||
password: '{password}', | ||
}); | ||
|
||
await theCampClient.sendLetter( | ||
{ | ||
성분: '예비군인/훈련병', | ||
군종: '육군', | ||
이름: '홍길동', | ||
입영부대: '육군훈련소-논산', | ||
관계: '팬', | ||
생년월일: '2001-01-01', | ||
입영일: '2022-02-14', | ||
전화번호: '01012341234', | ||
|
||
// 아래 값들은 현재 직접 뽑아야 함 | ||
// TODO: 사이트에서 긁어오게 작업하기 | ||
생년월일Code: '08IyuIy6/tXS/vveGiNc+Q==', // birth | ||
입영부대TypeCode: '0000140001', // trainUnitTypeCd | ||
입영부대EduId: '14030', // trainUnitEduSeq | ||
훈련병Id: '', // traineeMgrSeq | ||
}, | ||
{ | ||
작성자: '장지훈', | ||
제목: `내용은 곧 제목`, | ||
내용: `제목은 | ||
곧 | ||
내용`, | ||
}, | ||
); | ||
} | ||
main(); | ||
|
||
``` |