Options
All
  • Public
  • Public/Protected
  • All
Menu

A wrapper for the Polympics API, in TypeScript.

Hierarchy

Index

Constructors

constructor

Properties

apiUrl

apiUrl: string

Optional credentials

credentials: null | Credentials

Methods

checkSignups

  • checkSignups(): Promise<boolean>

discordAuthenticate

  • discordAuthenticate(token: string): Promise<Session>

getAccount

  • getAccount(id: string): Promise<Account>

getAward

getTeam

  • getTeam(id: number): Promise<Team>

listAccounts

listTeams

Protected request

  • request<Type>(method: HttpMethod, endpoint: string, data?: Record<string, any>, __namedParameters?: { emptyResponse?: boolean }): Promise<Type>
  • Make a request to an API endpoint.

    Type parameters

    • Type

    Parameters

    • method: HttpMethod
    • endpoint: string
    • data: Record<string, any> = ...
    • __namedParameters: { emptyResponse?: boolean } = ...
      • Optional emptyResponse?: boolean

    Returns Promise<Type>

updateAccount

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property

Generated using TypeDoc