1.2.0 β€’ Published 4 years ago

benedu-nodejs v1.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

benedu-nodejs

Do Something Fun🀣, Based on Benedu2020

Example

import getUserToken from './auth/getUserToken'
import getTaskExamList from './exam/getTaskExamList'
(async () => {
  await getUserToken({
    username: 'username',
    password: 'password'
  })
  console.log(await getTaskExamList()) // Print 과제
})()
import getTaskExamList from './exam/getTaskExamList'
getTaskExamList({
  providedToken: "ASPAUTHTOKEN"
}).then(console.log)

Functions

login

λ² λ„€λ“€ κ³„μ •μœΌλ‘œ λ‘œκ·ΈμΈν•˜κ³  토큰을 λ°˜ν™˜ν•©λ‹ˆλ‹€. 토큰은 λͺ¨λ“ˆ 내뢀에 μž„μ‹œμ μœΌλ‘œ μ €μž₯λ©λ‹ˆλ‹€.

Parameters

keydescriptiontypeoptional
username이메일string
passwordλΉ„λ°€λ²ˆν˜Έstring

Return Type

Promise<string>

getTaskExamList

과제 λͺ©λ‘μ„ λ°˜ν™˜ν•©λ‹ˆλ‹€

Parameters

keydescriptiontypeoptional
providedTokenμ‚¬μš©μž 지정 토큰stringY

Return Type

Promise<BriefExam[]>

getCreatedExam

μƒμ„±λœ λ¬Έμ œμ€ν–‰ μ‹œν—˜μ§€λ₯Ό λ°˜ν™˜ν•©λ‹ˆλ‹€

Parameters

keydescriptiontypeoptional
providedTokenμ‚¬μš©μž 지정 토큰stringY

Return Type

Promise<BriefExam[]>

getBeforeRegularExam

이전 지필고사 정보λ₯Ό λ°˜ν™˜ν•©λ‹ˆλ‹€

Parameters

keydescriptiontypeoptional
subjectκ³Όλͺ©μ½”λ“œSubjectN
gradeν•™λ…„μ½”λ“œGradeN
yearμ—°λ„μ½”λ“œYearN
providedTokenμ‚¬μš©μž 지정 토큰stringY

Return Type

Promise<RegularExamSource[]>

Classes

CreationSource

λ¬Έμ œμ€ν–‰μ˜ 원본이 λ˜λŠ” μ‹œν—˜μ§€μ˜ 정보λ₯Ό λ‹΄μŠ΅λ‹ˆλ‹€

Fields

keydescriptiontypeoptional
titleμ†ŒμŠ€ 이름stringN
subjectκ³Όλͺ©μ½”λ“œSubjectN
gradeμ—°λ„μ½”λ“œGradeN
sourceIdμ‚¬μš©μž 지정 토큰stringY

Methods

register

Parameters
keydescriptiontypeoptional
title등둝할 이름stringY
providedTokenμ‚¬μš©μž 지정 토큰stringY
Return Type

Promise<BriefExam[]>

Subclasses

RegularExamSource

이전 지필고사 정보λ₯Ό λ‹΄λŠ” ν΄λž˜μŠ€μž…λ‹ˆλ‹€

Additional
keydescriptiontypeoptional
yearμ—°λ„μ½”λ“œYearN

npm.io

Contributor

RyCont

To-Do

  • Create new exam
  • Benedu2020 Coverage 100%
  • Deno Port
1.2.0

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago