Event

행사 API

SWMaestro에서 주최하는 행사 목록을 조회하고 신청할 수 있습니다. 행사 카테고리, 접수 기간, 행사 기간, 상태 정보가 포함됩니다.

List

행사 목록을 페이지 단위로 조회합니다.

const { items, pagination } = await client.event.list()
const { items: page2 } = await client.event.list({ page: 2 })

Response

interface EventListItem {
  id: number
  category: string
  title: string
  registrationPeriod: { start: string; end: string }
  eventPeriod: { start: string; end: string }
  status: string
  createdAt: string
}

Get Detail

특정 행사의 상세 정보를 조회합니다.

const event = await client.event.get(789)

Apply

행사에 신청합니다. 접수 기간 내에만 신청할 수 있으며, 이미 신청한 경우 오류를 반환합니다.

await client.event.apply(789)