getAthlete

Retrieve athlete data for a given connection

function getAthlete(
  connection: Connections,
  toWebhook: Boolean = true
): Promise<DataMessage>
  • connection: Connections ➡ An ENUM from the Connections class signifying the connection you wish to initiate for.
  • toWebhook: Bool ➡ Whether or not to send data to your webhook. If false, DataMessage on the returned Promise will contain the data in the data field.

returns

  • Promise<DataMessage>