Prefer using email? Say hi at hello@moveshelf.com
## README: this example shows how we can retrieve sessions from Moveshelf
# using the Moveshelf API.
## General configuration. Set values before running the script
my_project = "<organizationName/projectName>" # e.g. support/demoProject
session_start_date = None or "<startDate>" # start date in "YYYY-MM-DD" format or None
session_end_date = None or "<endDate>" # end date in "YYYY-MM-DD" format or None
## Add here the code to retrieve the project_id
# ... my_project_id = projects[idx_my_project]["id"]
## Get all sessions in the project within the (optional) date range
## Set include_additional_data to True to also retrieve
## clips/trials and data files
sessions = api.getProjectSessions(
my_project_id,
start_date=session_start_date,
end_date=session_end_date,
include_additional_data=False
)