oTree Forum >

oTree REST API , get all started Sessions

#1 by mlt_123 (edited )

I'd like to retrieve the Session Code for all started Sessions via REST API , any ideas?

Furthermore I was wondering whether it was possible to receive participant data by participant_code.

data = call_api(GET, 'sessions', 'vfyqlw1q', participant_codes=['3s01ruvl'])  returns 
"failed with status code 403: get() got an unexpected keyword argument 'participants_codes'"

Thanks in advance

#2 by Chris_oTree ,

There is currently no REST API to retrieve all sessions. I might add one in the future.

#3 by malte_n

Alright, appreciate the quck response. :)

Write a reply

Set forum username