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 returnedPromise
will contain the data in thedata
field.
returns
Promise<DataMessage>