Skip to main content

getLessons

Gets a list of lessons.

Arguments

  • (dateFrom?) - Date
  • (dateTo?) - Date

If the dates aren't provided defaults to today.

Returns

An array of Lesson objects

Example

client.getLessons({dateFrom?}, {dateTo?}).then(lessons => {
lessons.forEach(lesson => {
// lessons
})
})