2.2.0 • Published 1 year ago

nyrr-results-api v2.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

nyrr-results-api

Installation

npm install nyrr-results-api

Example Usage

import NyrrApi from "nyrr-results-api";

...
...
...

//get team results for the Men's "A" division in 2022
const divisionResults = await NyrrApi.getDivisionResults("AM", 2022);

Available functions

All functions of NyrrApi return a promise that resolves to a value described below:

  • getYears()
    • Get the list of years with team standings available.
  • getDivisionsResults(year:number)
    • Get a list of all divisions with team standings for a given year
  • getTeams(year:number)
    • Get a list of all teams available for a given year
  • getDivisionResults(divisionCode:string, year:number)
    • Get a list of team results for a given division and year. This includes team points for each race
  • getTeamAwards(
      eventCode:string, 
      teamCode:string, 
      gender:string | null = null, 
      minimumAge:number | null = null
    )
    • Get a list of team results for a given division and year. This includes team points for each race
    • This endpoint accepts a gender and minimum age rather than a division code. For example, to get the team's open men division, pass gender = "M" and minimumAge = 0.
  • getTeamAwardRunners(
      eventCode:string, 
      teamCode:string, 
      teamGender:string | null = null, 
      teamMinimumAge:number | null = null
    )
    • Get a list of team results for a given division and year. This includes team points for each race
    • This endpoint accepts a gender and minimum age rather than a division code. For example, to get the team's open men division, pass teamGender = "M" and teamMinimumAge = 0.
  • searchEvents(
      year:number | null = null, 
      searchString:string = "", 
      distance: string | null = null, 
    )
    • Get a list of all past events matching the search parameters
2.2.0

1 year ago

1.0.11

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.0.10

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago