Open hamelin opened 7 months ago
@matthewfeickert here is the relevant API knowledge I hacked together.
Thanks @hamelin! I'm going to step through this on Friday, and I'll tag both you and @guenp for a PR review once I think I know what I'm doing. :+1:
I have figured out some tooling to grab data from submissions (proposals) and reviews out of PreTalx, which may be useful for assigning proposal reviews to volunteers.
First, both relevant PreTalx APIs authenticate using a fixed token already assigned to each user. Fetch it from the user profile page, scroll down to the API Access heading.
Second, both APIs are streaming: each invocation returns a subset of the sequence of either submissions or reviews, along with a URL whose GET fetches the next page. The following function articulates the logic to pull the whole stream associated to one of these two API endpoints:
The endpoints in question:
Easy peasy!