getAthlete

getAthlete(params: { toWebhook?: boolean; userId: string }): Promise<TerraAthleteResponse>

Gets Athlete data for current user

Returns

A promise of type Athlete Data

Parameters

userId: string

Optional toWebhook: boolean

True for sending data to webhook and false for sending data in response body

Returns Promise