Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Boxrec

Hierarchy

  • Boxrec

Index

Methods

Static getBoutById

Static getBoxerPDF

  • getBoxerPDF(cookies: string, globalId: number, pathToSaveTo: undefined | string, fileName: undefined | string): Promise<string>
  • Parameters

    • cookies: string
    • globalId: number
    • Optional pathToSaveTo: undefined | string
    • Optional fileName: undefined | string

    Returns Promise<string>

Static getBoxerPrint

  • getBoxerPrint(cookies: string, globalId: number, pathToSaveTo: undefined | string, fileName: undefined | string): Promise<string>
  • Parameters

    • cookies: string
    • globalId: number
    • Optional pathToSaveTo: undefined | string
    • Optional fileName: undefined | string

    Returns Promise<string>

Static getChampions

Static getDate

  • getDate(cookies: string, params: BoxrecDate): Promise<BoxrecPageDate>

Static getEventById

Static getEventsByLocation

  • getEventsByLocation(cookies: string, params: BoxrecLocationEventParams, offset?: number): Promise<BoxrecPageLocationEvent>

Static getPeopleByLocation

Static getPeopleByName

Static getPersonById

Static getRatings

Static getResults

Static getSchedule

Static getTitleById

  • getTitleById(cookies: string, titleString: string, offset?: number): Promise<BoxrecPageTitle>

Static getTitles

Static getVenueById

  • getVenueById(cookies: string, venueId: number, offset?: number): Promise<BoxrecPageVenue>

Static getWatched

Static login

  • login(username: string, password: string): Promise<string>
  • Parameters

    • username: string
    • password: string

    Returns Promise<string>

    the BoxRec log in cookie to make subsequent requests

Static search

Static unwatch

  • unwatch(cookies: string, boxerGlobalId: number): Promise<boolean>
  • Parameters

    • cookies: string
    • boxerGlobalId: number

    Returns Promise<boolean>

Static watch

  • watch(cookies: string, boxerGlobalId: number): Promise<boolean>
  • Parameters

    • cookies: string
    • boxerGlobalId: number

    Returns Promise<boolean>

Generated using TypeDoc