Create a new User class from the API responses.
ParkrunValidationError ParkrunJS Validation Error - API response was not what was expected.
the API response
Protected
Readonly
_coreGet the user's Parkrun Clubs (for milestone runs / duties)
if you want data from only a single club.
ParkrunJS Networking Error.
Error when no data is available, usually because of a new account with no runs.
const user = .....
await user.getClubs()
// Example Response:
[
{ type: ClubType.ADULT, club: Clubs.TWO_HUNDRED_AND_FIFTY },
{ type: ClubType.JUNIOR, club: Clubs.NONE },
{ type: ClubType.VOLUNTEER, club: Clubs.TWENTY_FIVE }
]
Get an array of Event objects for each parkrun that the athlete has run, in alphabetical order.
(Borrows from getAthleteParkruns)
ParkrunNetError ParkrunJS Networking Error.
Generated using TypeDoc
A class representing a Parkrun User.