Participant URLs in admin report

199 views
Skip to first unread message

Tobias

unread,
Mar 25, 2021, 1:23:44 PM3/25/21
to oTree help & discussion
Hello,
I am trying to build a custom admin report that includes the participant URLs (Single-use-links). Is there any simple way to do this? My tries to pass the URLs via  vars_for_admin_report() failed so far.
I am aware that I can retrieve the participant-specific URL part with participant._start_url() but the baseURL is missing here.
 
Thank you,
Tobi




Chris @ oTree

unread,
Mar 25, 2021, 1:29:31 PM3/25/21
to oTree help & discussion
Can you tell me more about your use case? 
(I don't recommend using ._start_url() since that is not a documented method.)


Tobias

unread,
Mar 25, 2021, 1:41:10 PM3/25/21
to oTree help & discussion
We are building a generic payment app, where we want to pass specific data with the participant_label. This participant_label is an encrypted code that is created internally and used to later construct a payment link to our lab-payment-page. 

Hence, for the researchers in our lab, I want to create a simple table that they can easily copy and paste from the admin report to the subjects. The list would look something like this:


Thanks!

Chris @ oTree

unread,
Mar 25, 2021, 1:47:16 PM3/25/21
to oTree help & discussion
This sounds like a good use case for oTree HR: https://github.com/oTree-org/HR
Through oTree's REST API you can get participant start links, payment info, etc.
You can create a new app and follow the examples of mturk/prolific and see how they work.
It's more initial setup and requires knowledge of Django, but will be easier to extend and build things out the way you want them.

Tobias

unread,
Mar 25, 2021, 1:52:26 PM3/25/21
to oTree help & discussion
Perfect, thank you! I will take a look.
Reply all
Reply to author
Forward
0 new messages