Request for menstruation data for a specific connection
static Future<DataMessage?> getMenstruation(
Connection connection, DateTime startDate, DateTime endDate, {bool toWebhook = true}) async
Connection connection
➡ An ENUM from the Connections class signifying the connection you wish to initiate for.DateTime startDate
➡ The beginning of the request in either Date or Unix TimestampDateTime endDate
➡ The end of the request in either Date or Unix Timestamp- (Optional)
bool toWebhook
➡ Whether or not to send data to your webhook. If false,DataMessage
on the returnedFuture
will contain the data in thedata
field.
returns
Future<DataMessage?>