Hi,
I'm trying to get a report from zen about applications to our past events.
I'm able to fetch events using events/search on our dojo id but then iterating on the events I've 403 forbidden while accessing https://zen.coderdojo.com:443/api/2.0/events/applications/{event_id}.
I'm Champion of the Dojo so using the web interface I've full access to the applications but with REST API looks like I'm missing permissions. I'm pretty sure it worked in the past so it may be a regression (or maybe previously I could access it due to a bug and now you fixed and there's a different way for getting applications data)
The python code I'm using is:
url = "https://zen.coderdojo.com:443/api/2.0/"
headers = {'Content-type': 'application/json'}
def get_applications_for_event(eventId, cookie):
response = requests.get(url+'events/applications/{eventId}'.format(
eventId=eventId,
), cookies=cookie, headers=headers)
if(response.ok):
return response.json()
else:
print("Error happened")
response.raise_for_status()
and I'm calling get_applications_for_event(eventId, cookie): passing the cookie from the login and the event id of the event that I'm searching applications for.